Skip to content

Instantly share code, notes, and snippets.

@joshsimmons
Created December 13, 2014 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshsimmons/38e83f39be736b2ae196 to your computer and use it in GitHub Desktop.
Save joshsimmons/38e83f39be736b2ae196 to your computer and use it in GitHub Desktop.
Apache config for Bit (Py) Monster
ServerName bits.opensource.pub
WSGIScriptAlias / /vagrant_data/bit-monster/bit_monster/wsgi.py
WSGIPythonPath /vagrant_data/bit-monster/bit_monster:/vagrant_data/bit-monster/venv/lib/python3.4/site-packages
<Directory /vagrant_data/bit-monster/bit_monster>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /robots.txt /vagrant_data/bit-monster/static/robots.txt
Alias /favicon.ico /vagrant_data/bit-monster/static/favicon.ico
Alias /static/ /vagrant_data/bit-monster/static/
Alias /media/ /vagrant_data/bit-monster/media/
<Directory /vagrant_data/bit-monster/static>
Require all granted
</Directory>
<Directory /vagrant_data/bit-monster/media>
Require all granted
</Directory>
WSGIDaemonProcess opensource.pub processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup opensource.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment