note 48550 added to security.cgi-bin

From: Date: Wed, 29 Dec 2004 09:40:02 +0000
Subject: note 48550 added to security.cgi-bin
Groups: php.notes 
Request: Send a blank email to php-notes+get-82441@lists.php.net to get a copy of this message
--enable-force-cgi-redirect won't work in FastCGI mode : as of 4.3.10, it is only supported in CGI mode. However, you can achieve the same result with mod_rewrite under Apache : RewriteEngine on RewriteCond %{ENV:REDIRECT_STATUS} !=200 RewriteRule /cgi-bin/path/to/php - [F] This will only allow internal redirection, thus forbidding direct HTTP access to php interpreter (http://www.exemple.com/cgi-bin/path/to/php). ---- Manual Page -- http://www.php.net/manual/en/security.cgi-bin.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48550 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48550&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48550&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82441) next »