hi,

apache uses a simple technique for determining the path_info. it starts 
at your document root and looks for the directory you specified in your 
URI. it continues to go deeper in the directory structure until it 
encounters a directory(or file) that doesn't exist. when this happens 
the the path_info is set to rest of the URI (not including the last part 
which wasn't found!).

so in your case apache looks for $DOCROOT/debug

this doesn't exist (presumably) in your $DOCROOT. so the path_info is 
set to whatever is left, ie nothing!

if you tried to request www.host/debug/foo

the path_info would be /foo (without the /debug part)

if you created a directory called debug inside you docroot and you tried 
the previous example then you path_info would be empty.

i hope this doesn't confuse you a a lot!

best regards,
giorgos

Wes Cravens wrote:
> Hello all,
> 
> This is perhaps an apahce uri translation problem but:
> 
> I am having a path_info problem...
> 
> Synopsis.
> 
> <Location />
>       SetHandler perl-script
>       PerlHandler Module
> </Location>
> 
> Module.pm returns $r->path_info() in html to client.
> 
> url: 'www.host/' returns '/'
> url: 'www.host/debug' returns '' when I was expecting '/debug'
> 
> Now I can get around this with $r->uri but want to make sure that I
> undestand what I don't understand.
> 
> Thanks for any help.
> 
> Wes
> 
> Rev. FPCED(UK)
>  y n=-09hu6+40563
> 2136+-*+96,
> 3.-/n*+963.h



Reply via email to