Skip to content

Instantly share code, notes, and snippets.

@benhg
Created March 5, 2018 21:04
Show Gist options
  • Save benhg/ae8665676f0aded1cec5aeb2b19a7ee0 to your computer and use it in GitHub Desktop.
Save benhg/ae8665676f0aded1cec5aeb2b19a7ee0 to your computer and use it in GitHub Desktop.
HTTPD Config for a virtual host for a flask app
<VirtualHost *>
ServerName FQDN HERE
WSGIDaemonProcess PROCESS_GROUP_NAME threads=5 display-name=%{GROUP} python-home=/usr/local/
WSGIProcessGroup PROCESS_GROUP_NAME
WSGIScriptAlias / /PATH/TO/APP/server_base.wsgi
<Directory /PATH/TO/APP>
WSGIProcessGroup PROCESS_GROUP_NAME
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment