I assume you do NOT need to see the SiteMinder stuff in httpd.conf.
trac.conf:
LoadModule wsgi_module modules/mod_wsgi.so
#WSGIScriptAlias /wsgi_app /data/www/html/test.wsgi
#WSGIScriptAlias /wsgi_app2 /data/www/html/test.py
Alias /trac/chrome/common
/data/www/html/trac/testproject/deploy/htdocs/common
Alias /trac/chrome/site /data/www/html/trac/testproject/deploy/htdocs/site
<Directory "/data/www/html/trac/testproject/deploy/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /trac
/data/www/html/trac/testproject/deploy/cgi-bin/trac.wsgi
<Directory /data/www/html/trac/testproject/deploy/cgi-bin>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
# This is commented out because nothing worked when it was in effect.
#<Location "/trac/login">
#RequestHeader set REMOTE_USER %{REMOTE_USER}s
#</Location>
trac.wsgi:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C)2008-2009 Edgewall Software
# Copyright (C) 2008 Noah Kantrowitz <email@removed>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.org/wiki/TracLicense.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://trac.edgewall.org/log/.
#
# Author: Noah Kantrowitz <email@removed>
import os
def application(environ, start_request):
if not 'trac.env_parent_dir' in environ:
environ.setdefault('trac.env_path',
'/data/www/html/trac/testproject')
if 'PYTHON_EGG_CACHE' in environ:
os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
elif 'trac.env_path' in environ:
os.environ['PYTHON_EGG_CACHE'] = \
os.path.join(environ['trac.env_path'], '.egg-cache')
elif 'trac.env_parent_dir' in environ:
os.environ['PYTHON_EGG_CACHE'] = \
os.path.join(environ['trac.env_path'], '.egg-cache')
elif 'trac.env_parent_dir' in environ:
os.environ['PYTHON_EGG_CACHE'] = \
os.path.join(environ['trac.env_parent_dir'], '.egg-cache')
from trac.web.main import dispatch_request
return dispatch_request(environ, start_request)
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.