Created
March 9, 2017 14:01
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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