Merge "Define apache version for ErrorLogFormat"

This commit is contained in:
Jenkins 2016-12-07 17:45:40 +00:00 committed by Gerrit Code Review
commit cc95b6d212
2 changed files with 9 additions and 3 deletions

View File

@ -10,8 +10,11 @@ Listen %SERVICE_HOST%:%FREEZER_API_PORT%
WSGIApplicationGroup freezer-api
WSGIScriptAlias / %FREEZER_API_DIR%/freezer_api/cmd/wsgi.py
ErrorLogFormat "%M"
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/freezer-api.log
LogLevel warn
CustomLog /var/log/%APACHE_NAME%/freezer-api_access.log combined
<Directory %FREEZER_API_DIR%/freezer_api>

View File

@ -123,8 +123,11 @@ example running freezer-api with apache2
WSGIApplicationGroup freezer-api
WSGIScriptAlias / /opt/stack/freezer_api/cmd/wsgi.py
ErrorLogFormat "%M"
ErrorLog /var/log/freezer-api/freezer-api.log
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/freezer-api.log
LogLevel warn
CustomLog /var/log/freezer-api/freezer-api_access.log combined
<Directory /opt/stack/freezer_api>