Compare commits

...

2 Commits

Author SHA1 Message Date
marguskoiduste b9fac380e1
Merge e51455b491 into 2dfe21245f 2024-09-16 11:11:00 +00:00
marguskoiduste e51455b491
Attempt fixing https config template 2024-02-11 00:57:31 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
{% if site.security.restrict_methods | bool %}
<IfModule mod_rewrite.c>
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]
</IfModule>
<Directory />
@ -32,7 +32,7 @@
{% elif site.security.deny_dangerous_methods | bool %}
<IfModule mod_rewrite.c>
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]
</IfModule>
<Directory />