]> git.pld-linux.org Git - packages/trac.git/blob - trac-apache.conf
multi apache version config
[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         # Apache 2.x
10         <IfModule !mod_authz_core.c>
11                 Order allow,deny
12                 Allow from all
13         </IfModule>
14         # Apache 2.4
15         <IfModule mod_authz_core.c>
16                 Require all granted
17         </IfModule>
18 </Directory>
19
20 # TracModPython
21 # http://projects.edgewall.com/trac/wiki/TracModPython
22 <IfModule mod_python.c>
23         <Location /trac>
24                 SetHandler mod_python
25                 PythonHandler trac.web.modpython_frontend
26                 # For multiple projects
27                 PythonOption TracEnvParentDir /var/lib/trac
28         </Location>
29         <Location ~ "^/trac/([^/]+/)?chrome/">
30                 Sethandler default-handler
31         </Location>
32 </IfModule>
33
34 # TracCgi
35 # http://projects.edgewall.com/trac/wiki/TracCgi
36 <IfModule !mod_python.c>
37         ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
38         <Location /trac>
39                 <IfModule mod_env.c>
40                         SetEnv TRAC_ENV_PARENT_DIR /var/lib/trac
41                 </IfModule>
42                 # Apache 2.x
43                 <IfModule !mod_authz_core.c>
44                         Order allow,deny
45                         Allow from all
46                 </IfModule>
47                 # Apache 2.4
48                 <IfModule mod_authz_core.c>
49                         Require all granted
50                 </IfModule>
51         </Location>
52 </IfModule>
53
54 # You need this to allow users to authenticate
55 <Location ~ "^/trac/[^/]+/login">
56         AuthType Basic
57         AuthName "trac"
58         AuthUserFile /etc/webapps/trac/htpasswd
59         Require valid-user
60 </Location>
This page took 0.040376 seconds and 3 git commands to generate.