Permalink
Browse files

* prepping for kang production copy

  • Loading branch information...
1 parent ad07e5f commit c2fbfc62b92bca2070dd7ba23a602c46c66b1b6e @sdreher sdreher committed Sep 10, 2011
Showing with 87 additions and 0 deletions.
  1. +58 −0 apache/archive.conf
  2. +15 −0 apache/django_archive.wsgi
  3. +14 −0 settings_archive.py
View
@@ -0,0 +1,58 @@
+<VirtualHost *:13088>
+ ServerName mediathread-archive.ccnmtl.columbia.edu
+ ServerAdmin ccnmtl-sysadmin@columbia.edu
+ CustomLog /var/log/apache2/mediathread_archive/access.log combined
+ ErrorLog /var/log/apache2/mediathread_archive/error.log
+
+ SetEnv DJANGO_SETTINGS_MODULE mediathread.settings_archive
+
+ WSGIDaemonProcess site-mediathread user=pusher group=pusher threads=5 python-path=/usr/local/share/sandboxes/common/mediathread_archive/mediathread/ve/lib/python2.6/site-packages
+ WSGIProcessGroup site-mediathread
+ WSGIReloadMechanism Process
+
+ WSGIScriptAlias / /usr/local/share/sandboxes/common/mediathread_archive/mediathread/apache/django_stage.wsgi
+ <Directory /usr/local/share/sandboxes/common/mediathread_archive/mediathread/apache>
+ Order deny,allow
+ Allow from all
+ </Directory>
+
+ Alias /site_media/ /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/
+ Alias /bookmarklets/ /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/bookmarklets/
+ Alias /favicon.ico /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/favicon.ico
+ Alias /robots.txt /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/robots.txt
+ <Directory /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/>
+ Order deny,allow
+ Allow from all
+ ExpiresActive on
+ ExpiresDefault "access plus 10 years"
+ AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript
+ </Directory>
+ <Directory /usr/local/share/sandboxes/common/mediathread_archive/mediathread/media/bookmarklets/>
+ Order deny,allow
+ Allow from all
+ ExpiresActive on
+ Header add Cache-Control "no-cache"
+ Header add Pragma "no-cache"
+ FileETag MTime Size
+ AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript
+ </Directory>
+
+ Alias /media/ /usr/local/share/sandboxes/common/mediathread_archive/mediathread/ve/lib/python2.6/site-packages/django/contrib/admin/media/
+ <Directory /usr/local/share/sandboxes/common/mediathread_archive/mediathread/ve/lib/python2.6/site-packages/django/contrib/admin/media/>
+ Order deny,allow
+ Allow from all
+ ExpiresActive on
+ ExpiresDefault "access plus 10 years"
+ AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript
+ </Directory>
+
+ Alias /uploads/ /usr/local/share/sandboxes/common/mediathread_archive/mediathread/uploads/
+ <Directory /usr/local/share/sandboxes/common/mediathread_archive/mediathread/uploads/>
+ Order deny,allow
+ Allow from all
+ ExpiresActive on
+ ExpiresDefault "access plus 10 years"
+ AddOutputFilterByType DEFLATE text/css application/x-javascript application/javascript
+ </Directory>
+
+</VirtualHost>
View
@@ -0,0 +1,15 @@
+import os, sys, site
+
+# enable the virtualenv
+site.addsitedir('/usr/local/share/sandboxes/common/mediathread_archive/mediathread/ve/lib/python2.5/site-packages')
+
+# paths we might need to pick up the project's settings
+sys.path.append('/usr/local/share/sandboxes/common/')
+sys.path.append('/usr/local/share/sandboxes/common/mediathread_archive/')
+sys.path.append('/usr/local/share/sandboxes/common/mediathread_archive/mediathread/')
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'mediathread.settings_archive'
+
+import django.core.handlers.wsgi
+
+application = django.core.handlers.wsgi.WSGIHandler()
View
@@ -0,0 +1,14 @@
+from mediathread.settings import *
+
+DATABASE_ENGINE = 'postgresql_psycopg2'
+
+DATABASE_NAME = 'mediathread_20110909'
+
+TEMPLATE_DIRS = (
+ "/usr/local/share/sandboxes/common/mediathread_archive/mediathread/templates",
+)
+
+MEDIA_ROOT = '/usr/local/share/sandboxes/common/mediathread_archive/uploads/'
+
+DEBUG = False
+TEMPLATE_DEBUG = DEBUG

0 comments on commit c2fbfc6

Please sign in to comment.