summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2015-02-07 13:13:07 -0800
committerTim Graham <timograham@gmail.com>2015-03-12 20:09:56 -0400
commit77564c6f5a82e0a02b663583364fe0a91bee2790 (patch)
tree634e2e939b5c8715090e99a638d5390cb1f1d421
parente1657cc37fdf6ecd6bee46d82c95ef67fe147e87 (diff)
[1.8.x] Documented how to use a non-root subdirectory with mod_wsgi.
Backport of 7f8588d22ea3b53ba55d05922b67e7b3a0a7c91c from master
-rw-r--r--docs/howto/deployment/wsgi/modwsgi.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/howto/deployment/wsgi/modwsgi.txt b/docs/howto/deployment/wsgi/modwsgi.txt
index 620a20f5c9..4e7d627b31 100644
--- a/docs/howto/deployment/wsgi/modwsgi.txt
+++ b/docs/howto/deployment/wsgi/modwsgi.txt
@@ -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`_.