Commit 602af457 authored by Michal Čihař's avatar Michal Čihař

Document running Weblate under /weblate

parent 3fd8cc29
......@@ -133,6 +133,22 @@ mod_wsgi (available as :file:`examples/apache.conf`):
.. literalinclude:: ../examples/apache.conf
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`):
.. literalinclude:: ../examples/apache-path.conf
Additionally you will have to adjust :file:`settings.py`::
MEDIA_URL = '/weblate/media/'
STATIC_URL = '/weblate/static/'
.. note:: This is supported since Weblate 1.3.
.. _appliance:
Prebuilt appliance
......
# Example Apache configuration for running Weblate under /weblate path
# Path to Weblate code
WSGIPythonPath /usr/share/weblate
# Path to Weblate WSGI handler
WSGIScriptAlias /weblate "/usr/share/weblate/weblate/wsgi.py"
# Aliases to serve media and static files
Alias /weblate/media/ /usr/share/weblate/weblate/media/
Alias /static/admin /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin/
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