[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2002-08-09 17:12:50
|
I just committed a change that results in slightly different behavior. Examples: (my home dir is /afs/umr.edu/users/nneul, server docroot is /local/apache-root/htdocs) /cgi-bin/cgiwrapd/nneul/test/fred Input: /local/apache-root/htdocs/nneul/test/fred Output: /local/apache-root/htdocs/fred i.e. DOCROOT + PATH_INFO Unfortunately, with ~, I can't handle in a straightforward manner at the moment, so it makes no change. (Apache already changes P_T to include user home dir.) /cgi-bin/cgiwrapd/~nneul/test/fred Input: /afs/umr.edu/users/nneul/public_html/test/fred Output: /afs/umr.edu/users/nneul/public_html/test/fred -- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Daniel Nolte [mailto:dr...@gm...]=20 > Sent: Friday, August 09, 2002 10:38 AM > To: Neulinger, Nathan > Cc: cgi...@li... > Subject: RE: #!/usr/bin/php >=20 >=20 > Hi,=20 >=20 > > You're saying that the script is physically located at: > > /var/chroot/_nossh/k060881/htdocs/test.php >=20 > no, it is physically located in > /var/chroot/_nossh/k060881/htdocs/phpmagic.de/test.php >=20 > (For testing reason, I also placed a test.php in > /var/chroot/_nossh/k060881/htdocs/test.php - so that I'm able=20 > to access > it. But I requested > /var/chroot/_nossh/k060881/htdocs/phpmagic.de/test.php, cgiwrap just > constructed a wrong path out of it :()) >=20 >=20 > >I'm willing to change what cgiwrap does, so long as someone=20 > can provide > >me a pointer to a reference that says exactly what PATH_TRANSLATED is > >supposed to do, assuming that cgiwrap has the necessary=20 > information at > >the time. > > It does clearly look like it's bogus from cgiwrap. > > That one makes it look like it should be DOCUMENT_ROOT +=20 > PATH_INFO. I > > can do that if those vars are passed. (I believe they are). >=20 > I think the PATH_INFO will for cgiwrap - cgiwrap itself. So=20 > it wouldn't > be really useable >=20 > > Alternatively, I can just leave it alone, and merely strip out the > > "/user/" part? >=20 > This will work, aslong the username will never occur as directoryname. > For me it's fine. And would really help me and should work=20 > for everyone > else, too. >=20 > Bye > daniel >=20 >=20 >=20 >=20 |