diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-10-04 10:13:37 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 10:13:37 +1100 |
commit | 21ba69a627ff71d7236bb133e5dd3fbc99098960 (patch) | |
tree | 180b385f9b038f60f7dcf68a99895e099c279730 | |
parent | 34229046a7a8294fa0a4baf6c30cc03b70967755 (diff) | |
download | mod_wsgi-21ba69a627ff71d7236bb133e5dd3fbc99098960.tar.gz |
Fix up RestructuredText code example formatting.
-rw-r--r-- | docs/configuration-directives/WSGIScriptAliasMatch.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/configuration-directives/WSGIScriptAliasMatch.rst b/docs/configuration-directives/WSGIScriptAliasMatch.rst index b137357..db757a3 100644 --- a/docs/configuration-directives/WSGIScriptAliasMatch.rst +++ b/docs/configuration-directives/WSGIScriptAliasMatch.rst @@ -28,16 +28,17 @@ doing redirects. This is because the substitution of the matched sub pattern from the left hand side back into the right hand side is often critical. -If you are using WSGIScriptAliasMatch to pass to a wsgi handler, and you need -to preserve the path. You can do the following: +If you are using WSGIScriptAliasMatch to pass to a WSGI handler, and you +need to preserve the path. You can do the following:: WSGIScriptAlias /api /var/www/mysite.com/apache/django.wsgi/api -A more complicated example: +A more complicated example:: WSGIScriptAliasMatch "^/(admin|files|photologue)" /projects/Media/wsgi_handler.py/$1 -This will keep the URL match from being stripped off the URL by the time it reaches Django. +This will keep the URL match from being stripped off the URL by the time it +reaches the WSGI application. If you think you need to use WSGIScriptAliasMatch, you probably don't really. If you really really think you need it, then check on the mod_wsgi |