[1.7.x] Fixed #22392 -- Corrected deployment instructions for Apache 2.4.
Thanks zjcheah at yahoo.com for the report.
Backport of 0f37d2e4c0
from master
This commit is contained in:
parent
a195ec847e
commit
76ed0a615c
|
@ -26,7 +26,8 @@ Basic configuration
|
||||||
|
|
||||||
Once you've got mod_wsgi installed and activated, edit your Apache server's
|
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
|
``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
|
.. 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>
|
<Directory /path/to/mysite.com/mysite>
|
||||||
<Files wsgi.py>
|
<Files wsgi.py>
|
||||||
Order deny,allow
|
|
||||||
Require all granted
|
Require all granted
|
||||||
</Files>
|
</Files>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
@ -142,12 +142,10 @@ will be served using mod_wsgi::
|
||||||
Alias /static/ /path/to/mysite.com/static/
|
Alias /static/ /path/to/mysite.com/static/
|
||||||
|
|
||||||
<Directory /path/to/mysite.com/static>
|
<Directory /path/to/mysite.com/static>
|
||||||
Order deny,allow
|
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Directory /path/to/mysite.com/media>
|
<Directory /path/to/mysite.com/media>
|
||||||
Order deny,allow
|
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
@ -155,13 +153,13 @@ will be served using mod_wsgi::
|
||||||
|
|
||||||
<Directory /path/to/mysite.com/mysite>
|
<Directory /path/to/mysite.com/mysite>
|
||||||
<Files wsgi.py>
|
<Files wsgi.py>
|
||||||
Order allow,deny
|
|
||||||
Require all granted
|
Require all granted
|
||||||
</Files>
|
</Files>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
If you are using a version of Apache older than 2.4, replace
|
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/
|
.. _lighttpd: http://www.lighttpd.net/
|
||||||
.. _Nginx: http://wiki.nginx.org/Main
|
.. _Nginx: http://wiki.nginx.org/Main
|
||||||
|
|
Loading…
Reference in New Issue