# $Id$
-# Trac need to know where the database is located
-<IfModule mod_env.c>
- <Location /trac/trac.cgi>
- SetEnv TRAC_ENV "/var/lib/trac/project"
+# TracModPython
+# http://projects.edgewall.com/trac/wiki/TracModPython
+<IfModule mod_python_UNTESTED.c>
+ <Location /trac/trac>
+ SetHandler mod_python
+ PythonHandler trac.web.modpython_frontend
+ PythonOption TracEnvParentDir /var/lib/trac
+ PythonOption TracUriRoot /trac
</Location>
+
+ # You need this to allow users to authenticate
+ # trac.htpasswd can be created with
+ # cmd 'htpasswd -c trac.htpasswd'
+ # do 'man htpasswd' to see all the options
+ <Location /trac/trac/login>
+ AuthType Basic
+ AuthName "trac"
+ AuthUserFile /etc/webapps/trac/htpasswd
+ Require valid-user
+ </Location>
</IfModule>
-# You might want to activate following urls
-# to have easy access to trac as http://YOURSITE/trac
-#RedirectMatch ^/trac$ http://YOURSITE/trac/trac.cgi
-#RedirectMatch ^/trac/$ http://YOURSITE/trac/trac.cgi
+# TracCgi
+# http://projects.edgewall.com/trac/wiki/TracCgi
+#<IfModule !mod_python.c>
+ <IfModule mod_env.c>
+ <Location /trac/trac.cgi>
+ SetEnv TRAC_ENV_PARENT_DIR /var/lib/trac
+ </Location>
+ </IfModule>
-ScriptAlias /trac/trac.cgi /usr/share/trac/cgi-bin/trac.cgi
+ ScriptAlias /trac/trac.cgi /usr/share/trac/cgi-bin/trac.cgi
-# You need this to allow users to authenticate
-# trac.htpasswd can be created with
-# cmd 'htpasswd -c trac.htpasswd'
-# do 'man htpasswd' to see all the options
-<Location /trac/trac.cgi/login>
- AuthType Basic
- AuthName "trac"
- AuthUserFile /etc/trac/htpasswd
- Require valid-user
-</location>
+ # You need this to allow users to authenticate
+ <Location /trac/trac.cgi/login>
+ AuthType Basic
+ AuthName "trac"
+ AuthUserFile /etc/webapps/trac/htpasswd
+ Require valid-user
+ </Location>
+ <Location /trac/trac.cgi>
+ Allow from all
+ </location>
+#</IfModule>
Alias /trac/ /usr/share/trac/htdocs/
<Directory /usr/share/trac/htdocs/>
Order allow,deny
Allow from all
</Directory>
-
-# vim: filetype=apache ts=4 sw=4 et