Changeset 255
- Timestamp:
- 02/22/08 18:41:19 (9 months ago)
- Files:
-
- cleverbox/branches/0.4/assets/project.apache.conf (modified) (2 diffs)
- cleverbox/trunk/assets/project.apache.conf (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cleverbox/branches/0.4/assets/project.apache.conf
r143 r255 3 3 # Project : %(project_name)s 4 4 # 5 # This cleverbox configuration file enables three services for each project : 6 # - Subversion : a subversion repository 7 # - Trac : a Trac (http://trac.edgewall.org) instance, linked to the subversion repository 8 # - Documents : a webdav share 9 # 10 # All the services require authentication. 11 # 5 12 6 # -- Subversion 13 # Authentication is common to all services 14 <Location "/%(client_name)s/%(project_name)s"> 15 16 # Digest authentication is still experimental in apache-2.2 17 AuthType Basic 18 19 # -- File based authentification 20 # This file can be generated and updated using apache's `htpasswd` executable 21 AuthUserFile %(clients_root)s/%(client_name)s/var/%(project_name)s/htusers 22 23 </Location> 24 25 # -- Subversion service 7 26 <Location /%(client_name)s/%(project_name)s/svn> 8 27 DAV svn 9 28 SVNPath %(clients_root)s/%(client_name)s/var/svn/%(project_name)s 10 AuthType Basic 29 30 # This service requires authentication 11 31 AuthName "%(client_name)s :: %(project_name)s :: SVN" 12 13 # -- File based authentification14 AuthUserFile %(clients_root)s/%(client_name)s/var/svn/%(project_name)s/.htusers15 16 32 require valid-user 17 33 </Location> 18 34 19 # -- Trac 35 # -- Trac service 20 36 <Location /%(client_name)s/%(project_name)s/trac> 37 21 38 SetHandler mod_python 22 39 PythonPath "['%(trac_install_dir)s'] + sys.path" … … 25 42 PythonOption TracUriRoot /%(client_name)s/%(project_name)s/trac 26 43 SetEnv PYTHON_EGG_CACHE %(clients_root)s/%(client_name)s/tmp 44 27 45 </Location> 28 46 29 # Note : the match against "timeline" is needed to provide authenticated RSS feeds (see http://lab.clever-age.net/ticket/35)47 # Note : the match against "timeline" is needed to provide authenticated RSS feeds 30 48 <LocationMatch /%(client_name)s/%(project_name)s/trac/(login|timeline)> 31 AuthType Basic 49 50 # This service requires authentication 32 51 AuthName "%(client_name)s :: %(project_name)s :: Trac" 52 Require valid-user 33 53 34 # -- File based authentification35 # -- 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/.htusers38 39 Require valid-user40 54 </LocationMatch> 41 55 42 # -- Files under src/ will be available on the web 43 AliasMatch /%(client_name)s/%(project_name)s/src(.*) %(clients_root)s/%(client_name)s/htdocs/%(project_name)s$1 56 # -- Documents service 57 AliasMatch /%(client_name)s/%(project_name)s/documents(.*) %(clients_root)s/%(client_name)s/htdocs$1 58 <Location /%(client_name)s/%(project_name)s/trac> 59 60 Dav On 61 62 # This service requires authentication 63 AuthName "%(client_name)s :: %(project_name)s :: Documents" 64 Require valid-user 65 66 </Location> cleverbox/trunk/assets/project.apache.conf
r143 r255 3 3 # Project : %(project_name)s 4 4 # 5 # This cleverbox configuration file enables three services for each project : 6 # - Subversion : a subversion repository 7 # - Trac : a Trac (http://trac.edgewall.org) instance, linked to the subversion repository 8 # - Documents : a webdav share 9 # 10 # All the services require authentication. 11 # 5 12 6 # -- Subversion 13 # Authentication is common to all services 14 <Location "/%(client_name)s/%(project_name)s"> 15 16 # Digest authentication is still experimental in apache-2.2 17 AuthType Basic 18 19 # -- File based authentification 20 # This file can be generated and updated using apache's `htpasswd` executable 21 AuthUserFile %(clients_root)s/%(client_name)s/var/%(project_name)s/htusers 22 23 </Location> 24 25 # -- Subversion service 7 26 <Location /%(client_name)s/%(project_name)s/svn> 8 27 DAV svn 9 28 SVNPath %(clients_root)s/%(client_name)s/var/svn/%(project_name)s 10 AuthType Basic 29 30 # This service requires authentication 11 31 AuthName "%(client_name)s :: %(project_name)s :: SVN" 12 13 # -- File based authentification14 AuthUserFile %(clients_root)s/%(client_name)s/var/svn/%(project_name)s/.htusers15 16 32 require valid-user 17 33 </Location> 18 34 19 # -- Trac 35 # -- Trac service 20 36 <Location /%(client_name)s/%(project_name)s/trac> 37 21 38 SetHandler mod_python 22 39 PythonPath "['%(trac_install_dir)s'] + sys.path" … … 25 42 PythonOption TracUriRoot /%(client_name)s/%(project_name)s/trac 26 43 SetEnv PYTHON_EGG_CACHE %(clients_root)s/%(client_name)s/tmp 44 27 45 </Location> 28 46 29 # Note : the match against "timeline" is needed to provide authenticated RSS feeds (see http://lab.clever-age.net/ticket/35)47 # Note : the match against "timeline" is needed to provide authenticated RSS feeds 30 48 <LocationMatch /%(client_name)s/%(project_name)s/trac/(login|timeline)> 31 AuthType Basic 49 50 # This service requires authentication 32 51 AuthName "%(client_name)s :: %(project_name)s :: Trac" 52 Require valid-user 33 53 34 # -- File based authentification35 # -- 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/.htusers38 39 Require valid-user40 54 </LocationMatch> 41 55 42 # -- Files under src/ will be available on the web 43 AliasMatch /%(client_name)s/%(project_name)s/src(.*) %(clients_root)s/%(client_name)s/htdocs/%(project_name)s$1 56 # -- Documents service 57 AliasMatch /%(client_name)s/%(project_name)s/documents(.*) %(clients_root)s/%(client_name)s/htdocs$1 58 <Location /%(client_name)s/%(project_name)s/trac> 59 60 Dav On 61 62 # This service requires authentication 63 AuthName "%(client_name)s :: %(project_name)s :: Documents" 64 Require valid-user 65 66 </Location>
