Skip to content

Commit

Permalink
Initial implementation of trac wsgi for Apache.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedersen committed Feb 14, 2013
1 parent a6ecc6a commit e58e0e1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apache.conf
Expand Up @@ -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>
10 changes: 10 additions & 0 deletions 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.