in reply to Physical location of a requested URI

You could write a simple CGI that displays $ENV{PATH_TRANSLATED}, which is the filesystem translated path for a given PATH_INFO. Then feed your requested URLs one at a time as the path-info, like get "http://your-server/cgi/your-script/path/you/want/to/translate".

But you should also note that a URI does not necessarily have a corresponding path. There are many URLs on stonehenge.com for example that do not correspond to filesystem resources. So be sure you're asking the right question before you aim for answers.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Physical location of a requested URI

Replies are listed 'Best First'.
Re: •Re: Physical location of a requested URI
by iq-0 (Initiate) on Mar 06, 2003 at 15:39 UTC
    Well the scripts is called by apache when it is searching a directory for an index file. So we can pretty much rest assure that it is a directory and that we may display it.