mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-06 18:45:13 +08:00
- document what is under DATA_DIR - use same paths in all cases Signed-off-by: Michal Čihař <michal@cihar.com>
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
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
|
|
|
|
# DATA_DIR/static/robots.txt
|
|
Alias /weblate/robots.txt /var/lib/weblate/static/robots.txt
|
|
# DATA_DIR/static/favicon.ico
|
|
Alias /weblate/favicon.ico /var/lib/weblate/static/favicon.ico
|
|
|
|
# DATA_DIR/static/
|
|
Alias /weblate/static/ /var/lib/weblate/static/
|
|
<Directory /var/lib/weblate/static/>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# DATA_DIR/media/
|
|
Alias /weblate/media/ /var/lib/weblate/media/
|
|
<Directory /var/lib/weblate/media/>
|
|
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>
|