]> git.pld-linux.org Git - packages/trac.git/blob - trac-apache.conf
c2b60aa35f07ec23df38b820ebf35cce0d59c9e9
[packages/trac.git] / trac-apache.conf
1 # $Id$
2 Alias /trac/chrome/common /usr/share/trac/htdocs
3 AliasMatch ^/trac/([^/]+)/chrome/common/js/jquery.js /usr/share/jquery/jquery.js
4 AliasMatch ^/trac/([^/]+)/chrome/common/(.*) /usr/share/trac/htdocs/$2
5 # namespace for plugins
6 AliasMatch ^/trac/([^/]+/)?chrome/([^/]+)/(.*) /usr/share/trac/htdocs/$2/$3
7
8 <Directory "/usr/share/trac/htdocs">
9         Order allow,deny
10         Allow from all
11 </Directory>
12
13 # TracModPython
14 # http://projects.edgewall.com/trac/wiki/TracModPython
15 <IfModule mod_python.c>
16         <Location /trac>
17                 SetHandler mod_python
18                 PythonHandler trac.web.modpython_frontend
19                 # For multiple projects
20                 PythonOption TracEnvParentDir /var/lib/trac
21         </Location>
22         <Location ~ "^/trac/([^/]+/)?chrome/">
23                 Sethandler default-handler
24         </Location>
25 </IfModule>
26
27 # TracCgi
28 # http://projects.edgewall.com/trac/wiki/TracCgi
29 <IfModule !mod_python.c>
30         ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
31         <Location /trac>
32                 <IfModule mod_env.c>
33                         SetEnv TRAC_ENV_PARENT_DIR /var/lib/trac
34                 </IfModule>
35                 Allow from all
36         </Location>
37 </IfModule>
38
39 # You need this to allow users to authenticate
40 <Location ~ "^/trac/[^/]+/login">
41         AuthType Basic
42         AuthName "trac"
43         AuthUserFile /etc/webapps/trac/htpasswd
44         Require valid-user
45         Allow from all
46 </Location>
This page took 0.034648 seconds and 2 git commands to generate.