note 78933 added to faq.installation

From: Date: Fri, 02 Nov 2007 22:35:39 +0000
Subject: note 78933 added to faq.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-131957@lists.php.net to get a copy of this message
To limit HTTP Request Methods on the Apache server running PHP you should use mod_rewrite or mod_security instead of LimitExcept, to give you more control over the handling of such http errors. Can go in .htaccess file or httpd.conf # mod_rewrite <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST)$ RewriteRule .* - [F,L] </IfModule> # mod_security <IfModule mod_security.c> SecFilterSelective REQUEST_METHOD "!^(GET|HEAD|POST)$" "deny,log,status:403" </IfModule> You can use the php request method scanner at askapache to see exactly how your server deals with various request methods, and check that your server is configured properly.. http://www.askapache.com/online-tools/request-method-scanner/ ---- Server IP: 69.147.83.197 Probable Submitter: 24.172.164.205 ---- Manual Page -- http://www.php.net/manual/en/faq.installation.php Edit -- https://master.php.net/note/edit/78933 Del: integrated -- https://master.php.net/note/delete/78933/integrated Del: useless -- https://master.php.net/note/delete/78933/useless Del: bad code -- https://master.php.net/note/delete/78933/bad+code Del: spam -- https://master.php.net/note/delete/78933/spam Del: non-english -- https://master.php.net/note/delete/78933/non-english Del: in docs -- https://master.php.net/note/delete/78933/in+docs Del: other reasons-- https://master.php.net/note/delete/78933 Reject -- https://master.php.net/note/reject/78933 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131957) next »