Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Created September 7, 2012 17:19
Show Gist options
  • Save robrocker7/3667901 to your computer and use it in GitHub Desktop.
Save robrocker7/3667901 to your computer and use it in GitHub Desktop.
<VirtualHost 000.000.000.000:80>
ServerName brandname.com
ServerAlias www.brandname.com
DocumentRoot /path/to/htdocs
ErrorLog /path/to/logs/error_log
TransferLog /path/to/logs/access_log
Alias /favicon.ico /path/to/favicon.ico
Alias /django-media/ "/path/to/app/media/"
Alias /static/ "/path/to/app/static/"
WSGIDaemonProcess www.bt processes=2 threads=15 display-name=%{GROUP} \
user=protect group=protect maximum-requests=512 \
python-path=/path/to/app/env/lib/python2.6/site-packages
WSGIProcessGroup www.bt
WSGIScriptAlias / /path/to/app/production/www/brandterm_wsgi_handler.py
</VirtualHost>
<VirtualHost 000.000.000.000:80>
ServerName sub1.brandname.com
DocumentRoot /path/to/htdocs
ErrorLog /path/to/logs/error_log
TransferLog /path/to/logs/access_log
Alias /favicon.ico /path/to/favicon.ico
Alias /django-media/ "/path/to/app/media/"
Alias /static/ "/path/to/app/static/"
WSGIDaemonProcess sub1.bt processes=2 threads=15 display-name=%{GROUP} \
user=protect group=protect maximum-requests=512 \
python-path=/path/to/app/env/lib/python2.6/site-packages
WSGIProcessGroup sub1.bt
WSGIScriptAlias / /path/to/app/production/www/sub1_wsgi_handler.py
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment