Re: Invoking PHP scripts from a redirect location
| From: | Richard Lynch | Date: | Sun, 19 Aug 2001 02:53:46 +0000 |
| Subject: | Re: Invoking PHP scripts from a redirect location | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63330@lists.php.net to get a copy of this message | ||
> 1) Within Apache's httpd.conf file I have the following set:
> DocumentRoot "D:/Program Files/Apache Group/Apache/realdocs"
> <Directory "D:/Program Files/Apache Group/Apache/realdocs">
> RedirectMatch permanent ^/$ "P:/Main Projects/Test/index.php"
> ScriptAlias /php/ "d:/php/"
> AddType application/x-httpd-php .php .phtml
> Action application/x-httpd-php "/php/php.exe
I don't think you can have files outside of DocumentRoot be served up...
I suspect RedirectMatch only works to mangle one path within DocumentRoot to
another...
Even if Apache was willing to do it, PHP as a CGI is probably compiled to
not allow that, *especially* if safe_mode is on, or any of the other
security directives. Check those with a phpinfo()
You *COULD* create VirtualHosts with different DocumentRoot, and make
P:/whatever be a different hostname...
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm