Skip to content

Instantly share code, notes, and snippets.

@apolloclark
Created January 29, 2015 22:53
Show Gist options
  • Select an option

  • Save apolloclark/3f0e52c527dc169fa982 to your computer and use it in GitHub Desktop.

Select an option

Save apolloclark/3f0e52c527dc169fa982 to your computer and use it in GitHub Desktop.
<VirtualHost *>
WSGIApplicationGroup %{GLOBAL}
# Setup Python for the App1
WSGIDaemonProcess app1 user=www-data group=www-data threads=5
WSGIScriptAlias /app1 /var/www/app1/app1.wsgi
<Directory /var/www/app1>
Order deny,allow
Allow from all
</Directory>
<Location /app1>
WSGIProcessGroup app1
</Location>
# Setup Python for the App2
WSGIDaemonProcess app2 user=www-data group=www-data threads=5
WSGIScriptAlias /app2 /var/www/app2/app2.wsgi
<Directory /var/www/app2>
Order deny,allow
Allow from all
</Directory>
<Location /app2>
WSGIProcessGroup app2
</Location>
</VirtualHost>
@apolloclark
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment