Hey ho

I have a simple configuration:

PerlModule Test::FH
<Location /xyz/abc>
        SetHandler perl-script
        PerlResponseHandler Test::FH
</Location>

Now I go to the URL http://www.myhost.com/xyz/abc/qqq/123

Inside my code I want to get "/ggg/123" so I try

        print "Request: " . $r->path_info . "\n";

This returns "/abc/ggg/123"
Now it always drops the top level "/xyz" - assumably because it is effectively a file in the root directory.
One way to fix it is to create all the directories, but not too many.

Now what I really want is anything after what ever the location that the handler is set in.

I can achieve this with a variable that sets the location, but that seemed a little redundant.

Effectively I am creating a "virtual" location.

Is there a way I can configure or get the Location ?

Ta

Scott
--
* - *  http://www.osdc.com.au - Open Source Developers Conference * - *
Scott Penrose
VP in charge of Pancakes
http://linux.dd.com.au/
[EMAIL PROTECTED]

Dismaimer: If you receive this email in error - please eat it immediately to prevent it from falling into the wrong hands.

Please do not send me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Microsoft is not the answer. It's the question. And the answer is no.


Reply via email to