#
# VirtualHost for weblate
#
WSGIPythonPath /var/www/html/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 webmaster@msantana.eng.br
    ServerName weblate.msantana.eng.br
    
    Alias /robots.txt /var/www/html/weblate/data/static/robots.txt
    Alias /favicon.ico /var/www/html/weblate/data/static/favicon.ico

    Alias /static/ /var/www/html/weblate/data/static/

    <Directory /var/www/html/weblate/data/static/>
        Require all granted
    </Directory>

    WSGIScriptAlias / /var/www/html/weblate/weblate/wsgi.py
    WSGIPassAuthorization On

    <Directory /var/www/html/weblate/weblate/>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>

</VirtualHost>
