Apache redirection by PHP

From: Date: Tue, 11 Sep 2001 09:58:52 +0000
Subject: Apache redirection by PHP
Groups: php.general 
Request: Send a blank email to php-general+get-66898@lists.php.net to get a copy of this message
I have the DNS alias on my server for "*" (which means any name). So that any requests for http://anyname.my.host are recieved by one virtual server. I need to make apache return /anyname/files/example.txt rather than /files/example.txt (which is actually requested). "anyname" depends on the user's request. I have tried to catch the requested name of server, and add it to $DOCUMENT_ROOT variable. It changed as I expected it to, but still /files/example.txt is returned. I've also tried to use setenv() -- the same result. Is there any way to do this kind of trick? -- Andrew Perevodchik ok@naverex.kiev.ua

« previous php.general (#66898) next »