Skip to content

Commit

Permalink
[1.7.x] Documented how to use a non-root subdirectory with mod_wsgi.
Browse files Browse the repository at this point in the history
Backport of 7f8588d from master
  • Loading branch information
IanLee1521 authored and timgraham committed Mar 13, 2015
1 parent 8d3011f commit 311116a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/howto/deployment/wsgi/modwsgi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ use ``WSGIPythonPath``; instead you should use the ``python-path`` option to
WSGIDaemonProcess example.com python-path=/path/to/mysite.com:/path/to/venv/lib/python2.7/site-packages
WSGIProcessGroup example.com

If you want to serve your project in a subdirectory
(``http://example.com/mysite`` in this example), you can add ``WSGIScriptAlias``
to the configuration above:

.. code-block:: apache

WSGIScriptAlias /mysite /path/to/mysite.com/mysite/wsgi.py process-group=example.com

See the official mod_wsgi documentation for `details on setting up daemon
mode`_.

Expand Down

0 comments on commit 311116a

Please sign in to comment.