You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Erich Oliphant <er...@vantixweb.com> on 2003/10/16 05:26:50 UTC

[users@httpd] Limiting HTTP Methods in general

Hi I am trying to limit the methods that an Apache server (2.0.X) will 
accept (i.e. POST and GET).  I've looked that the <Limit> and 
<LimitExcept> directives but they only seem to work in conjunction wtih 
access controls.  I want to set this server (or Directory/Location) 
wide.  Any suggestions?

Thanks
Erich


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Limiting HTTP Methods in general

Posted by Robert Andersson <ro...@profundis.nu>.
Erich Oliphant wrote:
> Hi I am trying to limit the methods that an Apache server (2.0.X) will 
> accept (i.e. POST and GET).  I've looked that the <Limit> and 
> <LimitExcept> directives but they only seem to work in conjunction wtih 
> access controls.  I want to set this server (or Directory/Location) 
> wide.  Any suggestions?

Why not simply:

    <LimitExcept POST GET>
        Order deny,allow
        Deny from all 
    </LimitExcept>

in the main config, or wherever?

Regards,
Robert Andersson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org