[cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2002-08-09 17:14:03
|
I suppose that if the DOCUMENT_ROOT environment variable is present, I can just shortcut, and immediately set it to docroot+pi... I'll try that shortly. -- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Neulinger, Nathan=20 > Sent: Friday, August 09, 2002 12:13 PM > To: 'Daniel Nolte' > Cc: cgi...@li... > Subject: RE: #!/usr/bin/php >=20 >=20 > I just committed a change that results in slightly different behavior. >=20 > Examples: (my home dir is /afs/umr.edu/users/nneul, server=20 > docroot is /local/apache-root/htdocs) >=20 > /cgi-bin/cgiwrapd/nneul/test/fred > Input: /local/apache-root/htdocs/nneul/test/fred > Output: /local/apache-root/htdocs/fred >=20 > i.e. DOCROOT + PATH_INFO >=20 > Unfortunately, with ~, I can't handle in a straightforward=20 > manner at the moment, so it makes no change. (Apache already=20 > changes P_T to include user home dir.) >=20 > /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 >=20 > -- Nathan >=20 > ------------------------------------------------------------ > Nathan Neulinger EMail: nn...@um... > University of Missouri - Rolla Phone: (573) 341-4841 > Computing Services Fax: (573) 341-4216 >=20 >=20 > > -----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=20 > 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=20 > 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 >=20 |