Skip to content

Instantly share code, notes, and snippets.

@kezabelle
Created March 9, 2017 14:01
Show Gist options
  • Save kezabelle/f33a85526c9dcc948c6b0b2be4667c80 to your computer and use it in GitHub Desktop.
Save kezabelle/f33a85526c9dcc948c6b0b2be4667c80 to your computer and use it in GitHub Desktop.
maybe something like this is enough for mod_wsgi; for indy1T9 on #django IRC.
<VirtualHost *:80>
ServerName whatever
ServerAlias www.whatever
<Directory /PATH/TO/PROJECT/CONFIGDIR>
<Files wsgi.py>
Require all granted
Satisfy Any
</Files>
</Directory>
<Directory /PATH/TO/STATIC_ROOT>
require all granted
Satisfy Any
</Directory>
Alias /favicon.ico /PATH/TO/STATIC_ROOT/favicon.ico
Alias /robots.txt /PATH/TO/STATIC_ROOT/robots.txt
Alias /static/ /PATH/TO/STATIC_ROOT/
WSGIScriptAlias / /PATH/TO/PROJECT/CONFIGDIR/wsgi.py
WSGIDaemonProcess SITENAME processes=3 threads=25 user=YOURUSER group=YOURUSERGROUP python-path=/PATH/TO/VIRTUALENV/site-packages:/PATH/TO/PROJECT maximum-requests=10000
WSGIProcessGroup SITENAME
WSGIApplicationGroup %{SERVER}
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment