diff --git a/templates/vhost.conf b/templates/vhost.conf index c9f1c197760812b3dfb7139e6fa93edab95261c2..20e708bc7376ba0d1ce0faa0f0257bbfb4a13003 100644 --- a/templates/vhost.conf +++ b/templates/vhost.conf @@ -13,7 +13,7 @@ {% if apache_version|default('2.4') == '2.4' %} ErrorLogFormat "[%{u}t] [%l] [pid %P] [client\ %{X-Forwarded-For}i] %M% ,\ referer:\ %{Referer}i" {% endif %} - LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy + LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy ErrorLog ${APACHE_LOG_DIR}/{{ domain.domain }}-error.log CustomLog ${APACHE_LOG_DIR}/{{ domain.domain }}-access.log combined env=!forwarded CustomLog ${APACHE_LOG_DIR}/{{ domain.domain }}-access.log proxy env=forwarded @@ -42,7 +42,7 @@ {% if apache_version|default('2.4') == '2.4' %} ErrorLogFormat "[%{u}t] [%l] [pid %P] [client\ %{X-Forwarded-For}i] %M% ,\ referer:\ %{Referer}i" {% endif %} - LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy + LogFormat "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy ErrorLog ${APACHE_LOG_DIR}/{{ domain.domain }}-error.log CustomLog ${APACHE_LOG_DIR}/{{ domain.domain }}-access.log combined env=!forwarded CustomLog ${APACHE_LOG_DIR}/{{ domain.domain }}-access.log proxy env=forwarded