Skip to content

Commit aac9ffc

Browse files
committed
Fix #17: Specify LimitRequestBody
1 parent 26d5011 commit aac9ffc

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Optional Configuration variables
4545
- `conf.memcached`: Set to `true` in order to clear cache.
4646
- `conf.data`: A list of the dump files to load data from, eg `[project, auth]`, omit to skip loaddata.
4747
Depends on `loaddata` variable to be `true`.
48+
- `conf.limit_request_body`: The maximum upload size allowed to Apache. Default: 10MB.
4849

4950
[WSGI](http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html)
5051

examples/django_sites.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ django_sites:
1212
wsgi_script: ninedev/wsgi_mod.py
1313
wsgi_threads: 3
1414
wsgi_inactivity_timeout: 300
15+
limit_request_body: 20971520
1516
python_version: 3.4
1617
memcached: true
1718
https_only: true

templates/vhost.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ WSGIProcessGroup {{ conf.domain_name }}
1313
{% endif %}
1414
WSGIScriptAlias / {{ conf.host_path }}/{{ conf.wsgi_script|default('index.wsgi') }}
1515

16+
LimitRequestBody {{ conf.limit_request_body|default(10485760) }}
17+
1618
Alias /static/ {{ conf.host_path }}/static/
1719
<Location "/static/">
1820
Options -Indexes

templates/vhost_ssl.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ WSGIProcessGroup {{ conf.domain_name }}
55
{% endif %}
66
WSGIScriptAlias / {{ conf.host_path }}/{{ conf.wsgi_script|default('index.wsgi') }}
77

8+
LimitRequestBody {{ conf.limit_request_body|default(10485760) }}
9+
810
Alias /static/ {{ conf.host_path }}/static/
911
<Location "/static/">
1012
Options -Indexes

0 commit comments

Comments
 (0)