weblate/examples/apache.conf
Michal Čihař 7939bf68cc Use consistent examples for all webservers
- document what is under DATA_DIR
- use same paths in all cases

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-16 21:25:47 +01:00

43 lines
1.2 KiB
ApacheConf

#
# VirtualHost for weblate
#
# This example assumes Weblate is installed in /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@weblate.example.org
ServerName weblate.example.org
# DATA_DIR/static/robots.txt
Alias /robots.txt /var/lib/weblate/static/robots.txt
# DATA_DIR/static/favicon.ico
Alias /favicon.ico /var/lib/weblate/static/favicon.ico
# DATA_DIR/static/
Alias /static/ /var/lib/weblate/static/
<Directory /var/lib/weblate/static/>
Require all granted
</Directory>
# DATA_DIR/media/
Alias /media/ /var/lib/weblate/media/
<Directory /var/lib/weblate/media/>
Require all granted
</Directory>
WSGIDaemonProcess weblate.example.org python-path=/usr/share/weblate
WSGIProcessGroup weblate.example.org
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /usr/share/weblate/weblate/wsgi.py process-group=weblate.example.org
WSGIPassAuthorization On
<Directory /usr/share/weblate/weblate>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>