diff --git a/doc/integration/web_servers.rst b/doc/integration/web_servers.rst index e3f2f52b1..c70cee60b 100644 --- a/doc/integration/web_servers.rst +++ b/doc/integration/web_servers.rst @@ -48,45 +48,15 @@ following content inside:: This is just one possible configuration. -.. note:: - Django 1.3 users, please consult this `page `_, - it contains an example :file:`wsgi.py` file. +To use mod_wsgi daemon mode, add the two following directives just +under ``WSGIScriptAlias``:: -.. note:: - You will certainly need more configuration in order to launch - Apache. + WSGIDaemonProcess example.com python-path=:/lib/python2.7/site-packages + WSGIProcessGroup example.com -mod_python -========== - -First, make sure that mod_python is installed on your server. - -Create a new virtualhost in your Apache configuration and put the -following content inside:: - - - ServerName - DocumentRoot - - - SetHandler mod_python - PythonHandler django.core.handlers.modpython - PythonPath "[''] + sys.path" - SetEnv DJANGO_SETTINGS_MODULE .settings - - - Alias "/sitestatic" "/sitestatic" - - SetHandler None - - - Alias "/media" "/media" - - SetHandler None - - - -This is just one possible configuration. +Replace values between ``<>`` with yours. If you don't use a +`virtualenv `_, just +remove the last part of the ``WSGIDaemonProcess`` directive. .. note:: You will certainly need more configuration in order to launch