ASF Bugzilla – Attachment 37495 Details for
Bug 64785
allowmethods should be able to disable individual methods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
documentation of AllowMethods +|-Method
file_64785.txt (text/plain), 2.09 KB, created by
Marcel Montes
on 2020-10-12 09:32:06 UTC
(
hide
)
Description:
documentation of AllowMethods +|-Method
Filename:
MIME Type:
Creator:
Marcel Montes
Created:
2020-10-12 09:32:06 UTC
Size:
2.09 KB
patch
obsolete
>Index: docs/manual/mod/mod_allowmethods.xml >=================================================================== >--- docs/manual/mod/mod_allowmethods.xml (revision 1882304) >+++ docs/manual/mod/mod_allowmethods.xml (working copy) >@@ -46,6 +46,10 @@ > <Location "/"> > AllowMethods GET POST OPTIONS > </Location> >+ >+<Location "/nopost"> >+ AllowMethods -POST >+</Location> > </highlight> > > </summary> >@@ -53,8 +57,8 @@ > <directivesynopsis> > <name>AllowMethods</name> > <description>Restrict access to the listed HTTP methods</description> >-<syntax>AllowMethods reset|<em>HTTP-method</em> >-[<em>HTTP-method</em>]...</syntax> >+<syntax>AllowMethods reset | [+|-]<var>HTTP-method</var> >+[ [+|-]<var>HTTP-method</var> ] ...</syntax> > <default>AllowMethods reset</default> > <contextlist><context>directory</context></contextlist> > <status>Experimental</status> >@@ -77,9 +81,28 @@ > use <directive module="core">TraceEnable</directive> instead.</p> > </note> > >+<p>Normally, if multiple <directive>AllowMethods</directive> could >+apply to a directory, then the most specific one is used and >+others are ignored; the methods are not merged. (See <a >+href="../sections.html#merging">how sections are merged</a>.) >+However if <em>all</em> the methods on the >+<directive>AllowMethods</directive> directive are preceded by a >+<code>+</code> or <code>-</code> symbol, the options are >+merged. Any method preceded by a <code>+</code> are added to the >+methods currently in force, and any method preceded by a >+<code>-</code> are removed from the methods currently in >+force. </p> >+ >+<note><title>Note</title> >+<p>Mixing <directive>AllowMethods</directive> with a <code>+</code> or >+<code>-</code> with those without is not valid syntax and will be >+rejected during server startup by the syntax check with an abort.</p> >+</note> >+ > <p><module>mod_allowmethods</module> was written to replace the rather > kludgy implementation of <directive module="core">Limit</directive> and > <directive module="core">LimitExcept</directive>.</p> >+ > </usage> > </directivesynopsis>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64785
:
37484
|
37490
|
37491
| 37495 |
37497
|
37500
|
37501
|
37523