Viljo Marrandi <[EMAIL PROTECTED]> said something to this effect on 07/03/2001:
> Hello,
> 
> Is it possible, if yes then how, to set handler recursively for one 
> directory? Now my handler is defined:
> 
> <Directory /my_server>
>     SetHandler perl-script
>     PerlHandler MyServ::MyHandler
> </Directory>

Use a Location rather than Directory directive. Use the absolute
URI relative to the server as the second part (e.g.,
http://www.foo.bar/baz would look like <Location /baz>). Take a
look at <URL:http://httpd.apache.org/docs/mod/core.html#location> and
<URL:http://httpd.apache.org/docs/mod/core.html#directory>.

> But if i try to access /my_server/some/other/dir then apache gives error 
> because this directory doesn't exist, which is ok, because i want these 
> some/other/dir to become parameters for my handler (not directories 
> where files are), but how to make that apache won't check if directory 
> exists or not. One possibility is to make these directories and in 
> httpd.conf define same handler for all them but this ain't good.

If sounds like you want to use r->path_info in your application,
so you *can't* create these directories, or they will become part
of r->filename, not r->path_info.

(darren)

-- 
My mother always used to tell me, "The early bird gets the worm."
The message seemed pretty clear to me: If you sleep late, you're
a lot less likely to be killed by a bird.
    -- Elliott Downing

Reply via email to