mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-16 18:16:35 +08:00
28 lines
888 B
Text
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>
|