mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-03 00:51:48 +08:00
- document what is under DATA_DIR - use same paths in all cases Signed-off-by: Michal Čihař <michal@cihar.com>
43 lines
1.2 KiB
ApacheConf
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>
|