mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-21 23:53:44 +08:00
50 lines
1.4 KiB
ApacheConf
Vendored
50 lines
1.4 KiB
ApacheConf
Vendored
#
|
|
# VirtualHost for weblate
|
|
#
|
|
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
|
|
|
|
DocumentRoot /usr/share/weblate/weblate/media/
|
|
|
|
Alias /robots.txt /usr/share/weblate/weblate/media/robots.txt
|
|
Alias /favicon.ico /usr/share/weblate/weblate/media/favicon.ico
|
|
|
|
Alias /media/ /usr/share/weblate/weblate/media/
|
|
Alias /doc/ /usr/share/doc/packages/weblate/html/
|
|
Alias /static/admin /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin/
|
|
|
|
<Directory /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin/>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Directory /usr/share/weblate/weblate/media/>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Directory /usr/share/doc/packages/weblate/html/>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
|
|
<Directory /usr/share/weblate/weblate/examples/>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Directory>
|
|
|
|
WSGIScriptAlias / /usr/share/weblate/weblate/wsgi.py
|
|
WSGIPassAuthorization On
|
|
|
|
<Directory /usr/share/weblate/weblate>
|
|
<Files wsgi.py>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Files>
|
|
</Directory>
|
|
|
|
</VirtualHost>
|