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]