httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Peña Escobio <>
Subject [users@httpd] problems with PATH_TRANSLATED and index pages inside PATH_INFO directory
Date Thu, 19 Aug 2004 16:31:28 GMT
hi, i'm trying to find if the problem i'm having is because a bug in httpd or something
wrong or missing in the httpd configuration file
here is the problem:

when i need the PATH_TRANSLATED information in a CGI but also have a
valid Index page inside the PATH_INFO directory, the variable will not
be a translated version of PATH_INFO, i will get the file name of
index page added to the end of the translated version of PATH_INFO:
like this:

PATH_TRANSLATED :/var/www/html/conf/index.html
PATH_INFO :/conf/

if i don't have any valid Index page i get the right values:

PATH_TRANSLATED :/var/www/html/conf/
PATH_INFO :/conf/

according to, which is
reference from,
PATH_TRANSLATED is, and i cuote,
"a translated version of PATH_INFO, which takes the path and does any
virtual-to-physical mapping to it"

i create this simple cgi perl script to show the variables:

# script to test the PATH_INFO and the PATH_TRANSLATED enviroment variables

print "Status: 200\n";
print "Content-Type: text/html\n\n";

print "<HTML><HEAD><TITLE>OK</TITLE></HEAD><BODY><H1>Checking

$filename = $ENV{'PATH_TRANSLATED'};
print "PATH_TRANSLATED :$filename <br>\n";

$filename = $ENV{'PATH_INFO'};
print "PATH_INFO :$filename <br>\n";

print "</BODY></HTML>\n";

and the way to check the problem can as easy as:


first, create an index file: touch conf/index.html
visit the URL, see the value of the variables, and the problem :-)

second, erase the index file:
visit the URL, see what should be the right out put

is these a bug or a configuration problem?

PD: sorry, i'm using httpd-2.0.46-32.ent.3 with RHEL-3

Nodo central de la red Infomed                 (
Usuario linux: 97152                           (
Miembro del grupo de coordinacion de LinuxCuba (

"Whatever you do will be insignificant, but it is very important
 that you do it."

Este mensaje fue enviado usando el servicio de correo en web de Infomed

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message