diff options
| author | Tim Graham <timograham@gmail.com> | 2014-04-15 17:43:29 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-15 17:46:01 -0400 |
| commit | cbc80eef6dea315a056f46d02fb129b068867024 (patch) | |
| tree | e3f9e3ab43a250446391a2c1c7fb849bf782115b /docs | |
| parent | 5b2d17d910d84e26ef229f0379bce66979f97e07 (diff) | |
[1.5.x] Fixed #22392 -- Corrected deployment instructions for Apache 2.4.
Thanks zjcheah at yahoo.com for the report.
Backport of 0f37d2e4c0 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/deployment/wsgi/modwsgi.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt index 6692081277..5234d33b16 100644 --- a/docs/howto/deployment/wsgi/modwsgi.txt +++ b/docs/howto/deployment/wsgi/modwsgi.txt @@ -26,7 +26,8 @@ Basic configuration Once you've got mod_wsgi installed and activated, edit your Apache server's ``httpd.conf`` file and add the following. If you are using a version of Apache -older than 2.4, replace ``Require all granted`` with ``Allow from all``. +older than 2.4, replace ``Require all granted`` with ``Allow from all`` and +also add the line ``Order deny,allow`` above it. .. code-block:: apache @@ -35,7 +36,6 @@ older than 2.4, replace ``Require all granted`` with ``Allow from all``. <Directory /path/to/mysite.com/mysite> <Files wsgi.py> - Order deny,allow Require all granted </Files> </Directory> @@ -139,12 +139,10 @@ will be served using mod_wsgi:: Alias /static/ /path/to/mysite.com/static/ <Directory /path/to/mysite.com/static> - Order deny,allow Require all granted </Directory> <Directory /path/to/mysite.com/media> - Order deny,allow Require all granted </Directory> @@ -152,13 +150,13 @@ will be served using mod_wsgi:: <Directory /path/to/mysite.com/mysite> <Files wsgi.py> - Order allow,deny Require all granted </Files> </Directory> If you are using a version of Apache older than 2.4, replace -``Require all granted`` with ``Allow from all``. +``Require all granted`` with ``Allow from all`` and also add the line +``Order deny,allow`` above it. .. _lighttpd: http://www.lighttpd.net/ .. _Nginx: http://wiki.nginx.org/Main |
