root/cleverbox/tags/0.4/assets/project.apache.conf

Revision 143, 1.5 KB (checked in by trivoallan, 5 years ago)

cleverbox :


fixes #2, #10

Line 
1#
2# Client  : %(client_name)s
3# Project : %(project_name)s
4#
5
6# -- Subversion
7<Location /%(client_name)s/%(project_name)s/svn>
8  DAV svn
9  SVNPath %(clients_root)s/%(client_name)s/var/svn/%(project_name)s
10  AuthType Basic
11  AuthName "%(client_name)s :: %(project_name)s :: SVN"
12
13  # -- File based authentification
14  AuthUserFile %(clients_root)s/%(client_name)s/var/svn/%(project_name)s/.htusers
15
16  require valid-user
17</Location>
18
19# -- Trac
20<Location /%(client_name)s/%(project_name)s/trac>
21  SetHandler mod_python
22  PythonPath "['%(trac_install_dir)s'] + sys.path"
23  PythonHandler trac.web.modpython_frontend
24  PythonOption TracEnv %(clients_root)s/%(client_name)s/var/trac/%(project_name)s
25  PythonOption TracUriRoot /%(client_name)s/%(project_name)s/trac
26  SetEnv PYTHON_EGG_CACHE %(clients_root)s/%(client_name)s/tmp
27</Location>
28
29# Note : the match against "timeline" is needed to provide authenticated RSS feeds (see http://lab.clever-age.net/ticket/35)
30<LocationMatch /%(client_name)s/%(project_name)s/trac/(login|timeline)>
31  AuthType Basic
32  AuthName "%(client_name)s :: %(project_name)s :: Trac"
33
34  # -- File based authentification
35  # -- Users can be used using :
36  # --  htpasswd %(clients_root)s/%(client_name)s/var/trac/%(project_name)s/.htusers <username>
37  AuthUserFile %(clients_root)s/%(client_name)s/var/trac/%(project_name)s/.htusers
38
39  Require valid-user
40</LocationMatch>
41
42# -- Files under src/ will be available on the web
43AliasMatch /%(client_name)s/%(project_name)s/src(.*) %(clients_root)s/%(client_name)s/htdocs/%(project_name)s$1
Note: See TracBrowser for help on using the browser.