Changeset 255 for cleverbox/branches

Show
Ignore:
Timestamp:
02/22/08 18:41:19 (4 years ago)
Author:
trivoallan
Message:

cleverbox : Enhanced default project vhost template. refs #32

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/branches/0.4/assets/project.apache.conf

    r143 r255  
    33# Project : %(project_name)s 
    44# 
     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# 
    512 
    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 
    726<Location /%(client_name)s/%(project_name)s/svn> 
    827  DAV svn 
    928  SVNPath %(clients_root)s/%(client_name)s/var/svn/%(project_name)s 
    10   AuthType Basic 
     29 
     30  # This service requires authentication 
    1131  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  
    1632  require valid-user 
    1733</Location> 
    1834 
    19 # -- Trac 
     35# -- Trac service 
    2036<Location /%(client_name)s/%(project_name)s/trac> 
     37 
    2138  SetHandler mod_python 
    2239  PythonPath "['%(trac_install_dir)s'] + sys.path" 
     
    2542  PythonOption TracUriRoot /%(client_name)s/%(project_name)s/trac 
    2643  SetEnv PYTHON_EGG_CACHE %(clients_root)s/%(client_name)s/tmp 
     44 
    2745</Location> 
    2846 
    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 
    3048<LocationMatch /%(client_name)s/%(project_name)s/trac/(login|timeline)> 
    31   AuthType Basic 
     49 
     50  # This service requires authentication 
    3251  AuthName "%(client_name)s :: %(project_name)s :: Trac" 
     52  Require valid-user 
    3353 
    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 
    4054</LocationMatch> 
    4155 
    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 
     57AliasMatch /%(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>