@@ -127,7 +127,7 @@ ErrorLog ${APACHE_LOG_DIR}/{{ sanitized_name }}_error.log
127127{% set apache__tpl_status_enabled = item .status_enabled |d (apache__status_for_vhost_enabled ) | bool %}
128128{{ get_server_status_directives(item, apache__tpl_status_enabled) -}}
129129{% if apache__tpl_status_enabled |bool and (
130- (mode == 'http' and (item .redirect_http |d () or item .redirect_to_https |d (https_enabled ) | bool )) or
130+ (mode == 'http' and (item .redirect_http |d () or item .redirect_to_https |d (apache__redirect_to_https ) | bool )) or
131131 (mode == 'https' and item .redirect_https |d ())
132132 ) %}
133133RewriteEngine On
@@ -136,7 +136,7 @@ RewriteRule "^{{ item.status_location|d(apache__status_location) }}" "-" [L]
136136{% endif %}
137137{% if mode == 'http' and item .redirect_http |d () %}
138138{{ get_redirect(item.redirect_http_code|d(307), "/", item.redirect_http, apache__tpl_use_redirect_module) }}
139- {% elif mode == 'http' and item .redirect_to_https |d (https_enabled ) | bool %}
139+ {% elif mode == 'http' and item .redirect_to_https |d (apache__redirect_to_https ) | bool %}
140140{{ get_redirect(item.redirect_to_https_with_code|d("301"), "/", "https://" + (debops__tpl_macros.get_yaml_list_for_elem(item.name) | from_yaml)[0] , apache__tpl_use_redirect_module) }}
141141{% elif mode == 'https' and item .redirect_https |d () %}
142142{{ get_redirect(item.redirect_https_code|d(307), "/", item.redirect_https, apache__tpl_use_redirect_module) }}
@@ -255,7 +255,7 @@ Header {{ apache__tpl_directive_options }} X-Content-Type-Options "{{ item.http_
255255{% macro get_common_headers (item ) %} {# [[[ #}
256256{% if item .http_clacks_overhead |d (apache__http_clacks_overhead |d (True )) | bool %}
257257{#
258- # Respect the will of the DebOps Creater .
258+ # Respect the will of the DebOps Creator .
259259# Ref: https://github.com/debops/ansible-nginx/commit/d6cd455c68a7584b2592053fd98d3e539054e09a
260260#}
261261Header always set X-Clacks-Overhead "GNU Terry Pratchett"
0 commit comments