Skip to content
Snippets Groups Projects
Commit 9f1db271 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#11 Enhance apache config for extras from Power12

parent 9f72090d
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,27 @@
{% endif %}
{% endif %}
</Directory>
<Directory {{ drupalRoot }}/.git/>
Require all denied
</Directory>
ErrorLog ${APACHE_LOG_DIR}/{{ item.domain }}-error.log
LogLevel warn
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!forwarded
CustomLog ${APACHE_LOG_DIR}/access.log proxy env=forwarded
CustomLog ${APACHE_LOG_DIR}/{{ item.domain }}-access.log combined env=!forwarded
CustomLog ${APACHE_LOG_DIR}/{{ item.domain }}-access.log proxy env=forwarded
<IfModule mod_expires.c>
ExpiresActive {% if apache_cache.active %}On{% else %}Off{% endif %}
ExpiresDefault {{ apache_cache.default }}
{% for type in apache_cache.bytype %}
ExpiresByType {{ apache_cache.bytype.type }} {{ apache_cache.bytype.default }}
{% endfor %}
</IfModule>
SetEnvIf X-Forwarded-Proto https HTTPS=on
{% if item.protocol|default("https") == "https" %}
{% if item.letsencrypt|default(true) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment