PATH_INFO and SCRIPT_NAME for handlers at root level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings!

I'm using Apache 2.2.4 with mod_perl 2.0.3.

I've got a mod_perl handler setup like so, within a vhost:

<Location /myapp>
        SetHandler perl-script
        PerlResponseHandler MyApp::Dispatcher
</Location>

Under this setup, if I navigate to /myapp/foo/bar/baz, I get:

PATH_INFO => /foo/bar/baz
SCRIPT_NAME => /myapp

This makes sense. However, if I then change the Location block from
/myapp to /, the behavior changes:

PATH_INFO => /bar/baz
SCRIPT_NAME => /foo

This breaks my dispatcher, which expects to see everything under the
Location as the PATH_INFO. Is this consistent with how PATH_INFO is
supposed to work, and if so is there a way to make it do what I want?

Thanks for any help!


Mike

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux