Skip to content
Browse files

Initial implementation of trac wsgi for Apache.

  • Loading branch information...
1 parent a6ecc6a commit e58e0e1344032dc51434bb62ec8443fa315cc855 @pedersen pedersen committed Feb 13, 2013
Showing with 22 additions and 0 deletions.
  1. +12 −0 apache.conf
  2. +10 −0 trac/trac.wsgi
View
12 apache.conf
@@ -100,3 +100,15 @@
ErrorLog /var/log/apache2/tg.gy-error.log
CustomLog /var/log/apache2/tg.gy-access.log combined
</VirtualHost>
+
+# trac (historical)
+<VirtualHost *:80>
+ ServerName trac.turbogears.org
+ WSGIScriptAlias / /home/turbogearsorg/siterepo/website/trac
+
+ <Directory /home/turbogearsorg/siterepo/website/trac>
+ WSGIApplicationGroup %{GLOBAL}
+ Order deny,allow
+ Allow from all
+ </Directory>
+</VirtualHost>
View
10 trac/trac.wsgi
@@ -0,0 +1,10 @@
+import os
+import sys
+
+sys.stdout = sys.stderr
+os.environ['PYTHON_EGG_CACHE'] = '/home/turbogearsorg/tracvenv/traceggs'
+os.environ['TRAC_ENV'] = '/home/turbogearsorg/tracvenv'
+
+import trac.web.main
+
+application = trac.web.main.dispatch_request

0 comments on commit e58e0e1

Please sign in to comment.
Something went wrong with that request. Please try again.