From c3103d3aa4db17cb43399dfcd509d75af5631e43 Mon Sep 17 00:00:00 2001 From: xamgreen Date: Thu, 7 Aug 2014 23:24:37 +0200 Subject: [PATCH 1/2] Use ${APACHE_LOG_DIR} instead of /var/log/apache2 --- cookbook/configuration/web_server_configuration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index 2ea1a976f6b..b1d1ba204b7 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -32,8 +32,8 @@ are: Allow from All - ErrorLog /var/log/apache2/project_error.log - CustomLog /var/log/apache2/project_access.log combined + ErrorLog ${APACHE_LOG_DIR}/project_error.log + CustomLog ${APACHE_LOG_DIR}/project_access.log combined .. note:: From 1b0745f29cc98568d63afe55137de3c694ec7e50 Mon Sep 17 00:00:00 2001 From: xamgreen Date: Mon, 25 Aug 2014 13:39:02 +0200 Subject: [PATCH 2/2] APACHE_LOG_DIR note added Added a note, that for systems, which support the APACHE_LOG_DIR env, the user can use it for the logging-path. --- cookbook/configuration/web_server_configuration.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index b1d1ba204b7..cf38edd8d4a 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -32,10 +32,13 @@ are: Allow from All - ErrorLog ${APACHE_LOG_DIR}/project_error.log - CustomLog ${APACHE_LOG_DIR}/project_access.log combined + ErrorLog /var/log/apache2/project_error.log + CustomLog /var/log/apache2/project_access.log combined - +.. note:: + You probably want to use ``${APACHE_LOG_DIR}/`` instead of ``/var/log/apache2/`` + for the logging-paths, if your system supports the ``APACHE_LOG_DIR`` variable. + .. note:: For performance reasons, you will probably want to set