<VirtualHost *:10080>

    #ServerAdmin 

    ServerName {{ domain }}
    
    #Stack size reduces the amount of virtual memory available per thread to a much more sensible limit than 8MB
    #This setting is especially useful for vps servers
    WSGIDaemonProcess {{ domain }} user={{ site_user}} processes=2 inactivity-timeout=300 maximum-requests=10000 threads=15 stack-size=524288 display-name={{ site_user }}
    WSGIProcessGroup {{ domain }}
    WSGIScriptAlias / {{ deployment_root }}/env/{{ project_name }}/wsgi/{{ wsgi_filename }}
    
    
    <Directory {{ deployment_root }}/env/{{ project_name }}/wsgi>
        Order deny,allow
        Allow from all
    </Directory>

    #LogLevels: debug, info, notice, warn, error, crit, alert, emerg
    LogLevel warn
    CustomLog /var/log/apache2/{{ u_domain }}_apache_access.log combined
    ErrorLog /var/log/apache2/{{ u_domain }}_apache_error.log

</VirtualHost>