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:10:04 -0400
commit311116aa645b51bfeb6d366f3167022754c2be82 (patch)
treeb39740d345a646976a0e7a286e14d21f40c8b81a
parent8d3011ff5cca33d5544029d5b41c9bd194609fa7 (diff)
[1.7.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 d994ef125f..60fe59681f 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`_.