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

TeamWork-9712069: Adjust apache log for default and old site

parent 3795a292
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,11 @@
</Directory>
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
{% if apache_log is defined %}
{% for line in apache_log %}
{{ line }}
{% endfor %}
{% else %}
LogLevel warn
{% if apache_version|default('2.4') == '2.4' %}
ErrorLogFormat "[%{u}t] [%l] [pid %P] [client\ %{X-Forwarded-For}i] %M% ,\ referer:\ %{Referer}i"
......@@ -41,6 +46,7 @@
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!forwarded
CustomLog ${APACHE_LOG_DIR}/access.log proxy env=forwarded
{% endif %}
Alias /apc-status /var/www/apc/apc.php
<Directory "/var/www/apc/apc.php">
......
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