weblate/examples/apache-path.conf
Michal Čihař a9b086784c Fix Apache configuration for static files
Fixes #978

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-25 16:07:28 +01:00

28 lines
888 B
Text

# Example Apache configuration for running Weblate under /weblate path
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
Alias /weblate/robots.txt /usr/share/weblate/data/static/robots.txt
Alias /weblate/favicon.ico /usr/share/weblate/data/static/favicon.ico
Alias /weblate/static/ /usr/share/weblate/data/static/
<Directory /usr/share/weblate/data/static/>
Require all granted
</Directory>
WSGIScriptAlias /weblate /usr/share/weblate/weblate/wsgi.py
WSGIPassAuthorization On
<Directory /usr/share/weblate/weblate>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>