Ticket #22392: 22392.diff

File 22392.diff, 1.3 KB (added by Tim Graham, 10 years ago)
  • docs/howto/deployment/wsgi/modwsgi.txt

    diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt
    index be73c8f..fae8638 100644
    a b Basic configuration  
    2626
    2727Once you've got mod_wsgi installed and activated, edit your Apache server's
    2828``httpd.conf`` file and add the following. If you are using a version of Apache
    29 older than 2.4, replace ``Require all granted`` with ``Allow from all``.
     29older than 2.4, replace ``Require all granted`` with ``Allow from all`` and
     30also add the line ``Order deny,allow`` above it.
    3031
    3132.. code-block:: apache
    3233
    older than 2.4, replace ``Require all granted`` with ``Allow from all``.  
    3536
    3637    <Directory /path/to/mysite.com/mysite>
    3738    <Files wsgi.py>
    38     Order deny,allow
    3939    Require all granted
    4040    </Files>
    4141    </Directory>
    will be served using mod_wsgi::  
    155155
    156156    <Directory /path/to/mysite.com/mysite>
    157157    <Files wsgi.py>
    158     Order allow,deny
    159158    Require all granted
    160159    </Files>
    161160    </Directory>
    162161
    163162If you are using a version of Apache older than 2.4, replace
    164 ``Require all granted`` with ``Allow from all``.
     163``Require all granted`` with ``Allow from all`` and also add the line
     164``Order deny,allow`` above it.
    165165
    166166.. _lighttpd: http://www.lighttpd.net/
    167167.. _Nginx: http://wiki.nginx.org/Main
Back to Top