Merge e51455b491 into 133b17f708
				
					
				
			This commit is contained in:
		
						commit
						f9a61a99da
					
				|  | @ -21,7 +21,7 @@ | ||||||
| {% if site.security.restrict_methods | bool %} | {% if site.security.restrict_methods | bool %} | ||||||
|   <IfModule mod_rewrite.c> |   <IfModule mod_rewrite.c> | ||||||
|     RewriteEngine On |     RewriteEngine On | ||||||
|     RewriteCond %{REQUEST_METHOD} ^(?!{{ for method in APACHE_CONFIG.security.restricted_methods | join('|') }}) |     RewriteCond %{REQUEST_METHOD} ^(?!{{ APACHE_CONFIG.security.restricted_methods | join('|') }}) | ||||||
|     RewriteRule .* - [L,R=405] |     RewriteRule .* - [L,R=405] | ||||||
|   </IfModule> |   </IfModule> | ||||||
|   <Directory /> |   <Directory /> | ||||||
|  | @ -32,7 +32,7 @@ | ||||||
| {% elif site.security.deny_dangerous_methods | bool %} | {% elif site.security.deny_dangerous_methods | bool %} | ||||||
|   <IfModule mod_rewrite.c> |   <IfModule mod_rewrite.c> | ||||||
|     RewriteEngine On |     RewriteEngine On | ||||||
|     RewriteCond %{REQUEST_METHOD} ^({{ for method in APACHE_CONFIG.security.dangerous_methods | join('|') }}) |     RewriteCond %{REQUEST_METHOD} ^({{ APACHE_CONFIG.security.dangerous_methods | join('|') }}) | ||||||
|     RewriteRule .* - [L,R=405] |     RewriteRule .* - [L,R=405] | ||||||
|   </IfModule> |   </IfModule> | ||||||
|   <Directory /> |   <Directory /> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue