Skip to content

Commit cbfd1b1

Browse files
committed
Fix #19: Specify apache log level
1 parent aac9ffc commit cbfd1b1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Optional variables
2121
- `flush`: Set to `true` in order to flush data before `loaddata`. Depends on `loaddata` variable to be `true`.
2222
- `newrelic`: New Relic license key. Omit to skip New Relic. Recommended to add a default in playbook.
2323
- `exclude`: Additional pattern to exclude from sync, eg. `media/`.
24+
- `loglevel`: Explicitly define an Apache log level, eg. `loglevel=info`.
2425

2526
Required Configuration variables
2627
--------------------------------

templates/vhost.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ WSGIScriptAlias / {{ conf.host_path }}/{{ conf.wsgi_script|default('index.wsgi')
1515

1616
LimitRequestBody {{ conf.limit_request_body|default(10485760) }}
1717

18+
{% if loglevel is defined %}LogLevel {{ loglevel }}
19+
{% endif %}
20+
1821
Alias /static/ {{ conf.host_path }}/static/
1922
<Location "/static/">
2023
Options -Indexes

templates/vhost_ssl.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ WSGIScriptAlias / {{ conf.host_path }}/{{ conf.wsgi_script|default('index.wsgi')
77

88
LimitRequestBody {{ conf.limit_request_body|default(10485760) }}
99

10+
{% if loglevel is defined %}LogLevel {{ loglevel }}
11+
{% endif %}
12+
1013
Alias /static/ {{ conf.host_path }}/static/
1114
<Location "/static/">
1215
Options -Indexes

0 commit comments

Comments
 (0)