weblate/examples/apache.conf
Michal Čihař b13188b4dd Remove not needed access to html docs
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-09-01 14:36:44 +02:00

29 lines
813 B
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
Alias /robots.txt /usr/share/weblate/data/static/robots.txt
Alias /favicon.ico /usr/share/weblate/data/static/favicon.ico
Alias /static/ /usr/share/weblate/data/static/
<Directory /usr/share/weblate/data/static/>
Require all denied
</Directory>
WSGIScriptAlias / /usr/share/weblate/weblate/wsgi.py
WSGIPassAuthorization On
<Directory /usr/share/weblate/weblate>
<Files wsgi.py>
Require all denied
</Files>
</Directory>
</VirtualHost>