Attempt fixing https config template
This commit is contained in:
		
							parent
							
								
									ca05530d30
								
							
						
					
					
						commit
						e51455b491
					
				|  | @ -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