Source

skeleton / apache.conf

Full commit
<VirtualHost [IP]:80>

    WSGIDaemonProcess [NAME] user=c9 group=www-data threads=25
    WSGIProcessGroup [NAME]

    AddDefaultCharset UTF-8

    Alias /media/ /var/www/vhosts/[DIR]/media/

    <Directory /var/www/vhosts/[DIR]/media>
    Order deny,allow
    Allow from all
    </Directory>

    LogLevel Info

    ServerName www.skisamoens.net

    DocumentRoot /var/www/vhosts/[DIR]

    WSGIScriptAlias / /var/www/vhosts/[DIR]/default.wsgi

    <Directory /var/www/vhosts/[DIR]>
    Order allow,deny
    Allow from all
    </Directory>

    <Location />
    AuthType Basic
    AuthName "Authentication Required"
    AuthUserFile "/var/www/vhosts/[DIR]/.htpasswd"
    Require valid-user
    </Location>

</VirtualHost>