Re: Apache redirection by PHP

From: Date: Tue, 11 Sep 2001 12:32:32 +0000
Subject: Re: Apache redirection by PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66910@lists.php.net to get a copy of this message
Look in the Apache manual at the section on mod_rewrite. - Tim On Tue, 2001-09-11 at 05:58, Andrew Perevodchik wrote: > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#66910) next »