- # Physical mapping provided; SCRIPT_* points to handler script
- # (Apache action)
- my $path = delete $ENV{PATH_TRANSLATED};
+ # SCRIPT_* points to handler script (Apache CGI)
+ # Run backwards through PATH_TRANSLATED to find target filename,
+ # then get file (relative) by stripping PATH_INFO.
+ my ($path, $rel) = (delete $ENV{PATH_TRANSLATED}, delete $ENV{PATH_INFO});