Commit 3b64f642 authored by Michal Čihař's avatar Michal Čihař

Add more complete example for running under path

Issue #824
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2b82a8f9
......@@ -737,9 +737,12 @@ Configuration for uwsgi (also available as :file:`examples/weblate.uwsgi.ini`):
Running Weblate under path
++++++++++++++++++++++++++
Minimalistic configuration to serve Weblate under ``/weblate`` (you will need
to include portions of above full configuration to allow access to the files).
Again using mod_wsgi (also available as :file:`examples/apache-path.conf`):
.. versionchanged:: 1.3
This is supported since Weblate 1.3.
Sample Apache configuration to serve Weblate under ``/weblate``. Again using
mod_wsgi (also available as :file:`examples/apache-path.conf`):
.. literalinclude:: ../../examples/apache-path.conf
:language: apache
......@@ -750,8 +753,6 @@ Additionally you will have to adjust :file:`weblate/settings.py`:
URL_PREFIX = '/weblate'
.. note:: This is supported since Weblate 1.3.
.. _appliance:
SUSE Studio appliance
......
# Example Apache configuration for running Weblate under /weblate path
# Path to Weblate code
WSGIPythonPath /usr/share/weblate
# If using virtualenv, you need to add it to search path as well:
# WSGIPythonPath /usr/share/weblate:/path/to/your/venv/lib/python2.7/site-packages
<VirtualHost *:80>
ServerAdmin admin@image.weblate.org
ServerName image.weblate.org
# Path to Weblate WSGI handler
WSGIScriptAlias /weblate "/usr/share/weblate/weblate/wsgi.py"
Alias /weblate/robots.txt /usr/share/weblate/data/static/robots.txt
Alias /weblate/favicon.ico /usr/share/weblate/data/static/favicon.ico
# Aliases to serve static files
Alias /static/ /usr/share/weblate/data/static/
Alias /weblate/doc/ /usr/share/doc/packages/weblate/html/
Alias /weblate/static/ /usr/share/weblate/data/static/
<Directory /usr/share/weblate/data/static/>
Require all denied
</Directory>
<Directory /usr/share/doc/packages/weblate/html/>
Require all denied
</Directory>
<Directory /usr/share/weblate/weblate/examples/>
Require all denied
</Directory>
WSGIScriptAlias /weblate /usr/share/weblate/weblate/wsgi.py
WSGIPassAuthorization On
<Directory /usr/share/weblate/weblate>
<Files wsgi.py>
Require all denied
</Files>
</Directory>
</VirtualHost>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment