From e51455b491c225eba25435acbd8497da4aad6341 Mon Sep 17 00:00:00 2001 From: marguskoiduste Date: Sun, 11 Feb 2024 00:57:31 +0200 Subject: [PATCH] Attempt fixing https config template --- .../etc/apache2/sites-available/inc/site_https_config.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/etc/apache2/sites-available/inc/site_https_config.j2 b/templates/etc/apache2/sites-available/inc/site_https_config.j2 index 8f73a7a..931ed70 100644 --- a/templates/etc/apache2/sites-available/inc/site_https_config.j2 +++ b/templates/etc/apache2/sites-available/inc/site_https_config.j2 @@ -21,7 +21,7 @@ {% if site.security.restrict_methods | bool %} 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] @@ -32,7 +32,7 @@ {% elif site.security.deny_dangerous_methods | bool %} 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]