Source

caktus-deployment / django-template / PROJECT_NAME / apache / staging.conf

Full commit
<VirtualHost *:80>
    ServerName dev.caktusgroup.com
    
    WSGIScriptReloading On
    WSGIReloadMechanism Process
    WSGIDaemonProcess PROJECT_NAME-staging
    WSGIProcessGroup PROJECT_NAME-staging
    WSGIApplicationGroup PROJECT_NAME-staging
    WSGIPassAuthorization On
    
    WSGIScriptAlias / /home/PROJECT_NAME/www/staging/PROJECT_NAME/apache/staging.wsgi/
    
    <Location "/">
        #Order Allow,Deny
        #Allow from all
        Order deny,allow
        Allow from none 
        AuthType basic
        AuthName "Caktus Staging Authentication"
        AuthUserFile "/home/passwords"
        Require valid-user
    </Location>
    
    <Location "/PROJECT_NAME/media">
        SetHandler None
    </Location>

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