Skip to content

Instantly share code, notes, and snippets.

@ripper234
Created March 28, 2011 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripper234/890269 to your computer and use it in GitHub Desktop.
Save ripper234/890269 to your computer and use it in GitHub Desktop.
# This file should be readable and writable by apache
WSGISocketPrefix ${APACHE_RUN_DIR}
#NOTE: all urs below will need to be adjusted if
#settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
#this allows "rooting" forum at [http://example.com/forum], if you like
<VirtualHost *>
ServerAdmin admin@draw3cards.com
DocumentRoot /home/osqa/sites/beta-meta-d3c
ServerName beta.meta.draw3cards.com
#run mod_wsgi process for django in daemon mode
#this allows avoiding confused timezone settings when
#another application runs in the same virtual host
WSGIDaemonProcess Beta-Meta-Draw3Cards
WSGIProcessGroup Beta-Meta-Draw3Cards
#force all content to be served as static files
#otherwise django will be crunching images through itself wasting time
Alias /m/ "/home/osqa/sites/beta-meta-d3c/forum/skins/"
<Directory "/home/osqa/sites/beta-meta-d3c/forum/skins">
Order allow,deny
Allow from all
</Directory>
Alias /upfiles/ "/home/osqa/sites/beta-meta-d3c/forum/upfiles/"
<Directory "/home/osqa/sites/beta-meta-d3c/forum/upfiles">
Order deny,allow
Allow from all
</Directory>
#this is your wsgi script described in the prev section
WSGIScriptAlias / /home/osqa/sites/beta-meta-d3c/osqa.wsgi
CustomLog ${APACHE_LOG_DIR}/beta-meta-d3c.access.log common
ErrorLog ${APACHE_LOG_DIR}/beta-meta-d3c.error.log
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment