Skip to content

Instantly share code, notes, and snippets.

@yentsun
Last active December 17, 2015 13:48
Show Gist options
  • Save yentsun/5619327 to your computer and use it in GitHub Desktop.
Save yentsun/5619327 to your computer and use it in GitHub Desktop.
A working example of Apache Virtual Host config for a pyramid app served with mod_wsgi. Ubuntu 13.04, Apache 2.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName appname.com
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess appname user=username group=username processes=1 threads=4 python-path=/home/username/env/lib/python2.7/site-packages
WSGIProcessGroup appname
WSGIScriptAlias / /home/username/Projects/AppName/pyramid.wsgi
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment