]> git.pld-linux.org Git - packages/trac.git/commitdiff
- mod_python support (initiated by Kamil Jakubowski), unfinished due mod_pythonproblems
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 1 Feb 2006 17:42:12 +0000 (17:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    trac-apache.conf -> 1.5

trac-apache.conf

index c3fe6f3295bb48dad59ba3a7d571378e7fda1bb7..9d80e40fc68bbdd7abe666b7064f86b2c0e60811 100644 (file)
@@ -1,29 +1,49 @@
 # $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/>
@@ -32,5 +52,3 @@ Alias /trac/ /usr/share/trac/htdocs/
        Order allow,deny
        Allow from all
 </Directory>
-
-# vim: filetype=apache ts=4 sw=4 et
This page took 0.116942 seconds and 4 git commands to generate.