Skip to content

Instantly share code, notes, and snippets.

@saml
Created January 28, 2016 18:09
Show Gist options
  • Save saml/de2d5d8d9e1244503d20 to your computer and use it in GitHub Desktop.
Save saml/de2d5d8d9e1244503d20 to your computer and use it in GitHub Desktop.
<VirtualHost *:8082>
ServerAdmin [email protected]
DocumentRoot /opt/myapp
ServerName admin.example.com
# LogLevel warn
LogLevel debug
ErrorLog "|/usr/local/apache-python/bin/rotatelogs /usr/local/apache-python/logs/error_log.%Y-%m-%d-%H_%M_%S 86400"
CustomLog "|/usr/local/apache-python/bin/rotatelogs /usr/local/apache-python/logs/access_log.%Y-%m-%d-%H_%M_%S 86400" combined
WSGIScriptAlias / /opt/myapp/wsgi.production
WSGIDaemonProcess myapp threads=15 maximum-requests=10000
WSGIProcessGroup myapp
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment