Skip to content

Instantly share code, notes, and snippets.

@abdulmuneer
Created March 4, 2016 13:16
Show Gist options
  • Save abdulmuneer/26087af17c0bf0abd1b8 to your computer and use it in GitHub Desktop.
Save abdulmuneer/26087af17c0bf0abd1b8 to your computer and use it in GitHub Desktop.
A sample apache conf taken from official mod_wsgi doc http://modwsgi.readthedocs.org/en/develop/user-guides/quick-configuration-guide.html
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
ServerAdmin webmaster@example.com
DocumentRoot /usr/local/www/documents
Alias /robots.txt /usr/local/www/documents/robots.txt
Alias /favicon.ico /usr/local/www/documents/favicon.ico
Alias /media/ /usr/local/www/documents/media/
<Directory /usr/local/www/documents>
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess example.com processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup example.com
WSGIScriptAlias / /usr/local/www/wsgi-scripts/myapp.wsgi
<Directory /usr/local/www/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment