Created
March 4, 2016 13:16
-
-
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
This file contains 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 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