|
Case 2: using --enable-force-cgi-redirect
This compile-time option prevents anyone from calling PHP
directly with a URL like Usually the redirection in the Apache configuration is done with the following directives: Action php-script /cgi-bin/php
This option has only been tested with the Apache web server, and
relies on Apache to set the non-standard CGI environment variable
Code Examples / Notes » security.cgi_bin.force_redirectgelgin
solaris 9 php4.4.0 i have found you can't use arbitrary names ie. AddType application/x-httpd-php .php works #AddHandler php4-script .php won't do must be AddHandler application/x-httpd-php celtic
Note that force-redirect doesn't work with IIS at all; it'll tell you to go away, as IIS doesn't supply the right variables to PHP. php.ini tells you to turn it off, so make sure you do. |