RE: [cgiwrap-users] RE: #!/usr/bin/php
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2002-08-09 20:12:50
|
Sounds like you need to do your rewrite/action something like: Rewrite /....php /cgi-bin/cgiwrap/user/$DOMAIN/$1 i.e. have your action put the domain in the script... I'm presuming you're wanting to share a single cgiwrap installation for all the virtual domains? -- 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 2:44 PM > To: Neulinger, Nathan > Cc: cgi...@li... > Subject: AW: [cgiwrap-users] RE: #!/usr/bin/php >=20 >=20 > Hi, >=20 > php scripts normaly not stored in /cgi-bin they are stored=20 > everywhere :) >=20 > e.G.=20 > The user has the account "k060881"=20 > His homedir would be "/var/chroot/_nossh/k060881" >=20 > In "/var/chroot/_nossh/k060881/htdocs" he has for every=20 > domain he owns a > subdir e.G. /var/chroot/_nossh/k060881/htdocs/phpmagic.de or > /var/chroot/_nossh/k060881/htdocs/whatever.com=20 >=20 > So his scripts could be located in > /var/chroot/_nossh/k060881/htdocs/HISDOMAIN/somedir/someotherd > ir/script. > php >=20 > But cgiwrap always removes "HISDOMAIN" e.G. if I request > HISDOMAIN.com/somedir/test.php > The file is in > /var/chroot/_nossh/k060881/htdocs/HISDOMAIN/somedir/test.php > but cgiwrap tries to execute the script in > /var/chroot/_nossh/k060881/htdocs/somedir/test.php >=20 > bye > Daniel >=20 >=20 >=20 |