Source

django-deploy / deploy / templates / deploy / apache_conf / mod_wsgi.conf

Full commit
<VirtualHost *:{{ port }}>
    ServerName {{ servername }}
    DocumentRoot {{ installpath }}
    {{ staticmedia|safe }}
    Alias /media  "{{ installpath }}/{{ project }}/media"
    {% if ssl_cert %}
    SSLEngine On
    SSLCertificateFile {{ ssl_cert }}
    {% endif %}
    WSGIPassAuthorization On
    WSGIScriptAlias / {{ installpath }}/bin/apache_mod_wsgi_runner.py
    
    <Directory {{ installpath }}/{{ project }}/ >
        Order deny,allow
        Allow from all
    </Directory>
    
    <Location "/media">
        SetHandler default
    </Location>
    
    ErrorLog /var/log/apache2/{{ project }}-error.log    
</VirtualHost>