<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 small servers
    WSGIDaemonProcess {{ domain }} processes=2 maximum-requests=1000 threads=15 stack-size=524288 
    WSGIProcessGroup {{ domain }}
    WSGIScriptAlias / {{ deployment_root }}/env/{{ project_name }}/wsgi/{{ u_domain }}.wsgi
    
    
    <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>