Author: glen                         Date: Wed Feb  1 17:42:17 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- mod_python support (initiated by Kamil Jakubowski), unfinished due 
mod_pythonproblems

---- Files affected:
SOURCES:
   trac-apache.conf (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/trac-apache.conf
diff -u SOURCES/trac-apache.conf:1.4 SOURCES/trac-apache.conf:1.5
--- SOURCES/trac-apache.conf:1.4        Tue Dec  6 13:41:36 2005
+++ SOURCES/trac-apache.conf    Wed Feb  1 18:42:12 2006
@@ -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 @@
        Order allow,deny
        Allow from all
 </Directory>
-
-# vim: filetype=apache ts=4 sw=4 et
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/trac-apache.conf?r1=1.4&r2=1.5&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to