Source

caktus-deployment / example-django-project / caktus_website / apache / staging.conf

<VirtualHost *:80>
    WSGIScriptReloading On
    WSGIReloadMechanism Process
    WSGIDaemonProcess caktus_website-staging
    WSGIProcessGroup caktus_website-staging
    WSGIApplicationGroup caktus_website-staging
    WSGIPassAuthorization On
    
    WSGIScriptAlias / /home/caktus/www/staging/caktus_website/apache/staging.wsgi/
    
    <Location "/">
        Order Allow,Deny
        Allow from all
    </Location>
    
    <Location "/media">
        SetHandler None
    </Location>

    Alias /media /home/caktus/www/staging/caktus_website/media
    
    <Location "/admin-media">
        SetHandler None
    </Location>
    
    Alias /admin-media /home/caktus/www/staging/caktus_website/media/admin
    
    ErrorLog /home/caktus/www/log/error.log
    LogLevel info
    CustomLog /home/caktus/www/log/access.log combined
</VirtualHost>