From 0f37d2e4c0175d7b0ebe63e1146250437fc88cd0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 15 Apr 2014 17:43:29 -0400 Subject: [PATCH] Fixed #22392 -- Corrected deployment instructions for Apache 2.4. Thanks zjcheah at yahoo.com for the report. --- docs/howto/deployment/wsgi/modwsgi.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt index be73c8f625b..2658e9d31be 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``. - Order deny,allow Require all granted @@ -142,12 +142,10 @@ will be served using mod_wsgi:: Alias /static/ /path/to/mysite.com/static/ - Order deny,allow Require all granted - Order deny,allow Require all granted @@ -155,13 +153,13 @@ will be served using mod_wsgi:: - Order allow,deny Require all granted 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