source: package_branches/invirt-web/hvirt/files/etc/apache2/conf.invirt/svn.mako @ 2942

Last change on this file since 2942 was 2922, checked in by gdb, 15 years ago

Updated mako templates

File size: 1.2 KB
RevLine 
[2918]1<%page args="cfg, invirt_ssl" />
2
[2922]3% if cfg.web.sites.svn.port not in [80, 443]:
4  Listen ${cfg.web.sites.svn.port}
5% endif
[2918]6<VirtualHost *:${cfg.web.sites.svn.port}>
7        ServerAdmin ${cfg.web.errormail}
8        ServerName ${cfg.web.hostname}:${cfg.web.sites.svn.port}
9       
10        <Directory />
11                Options FollowSymLinks
12                AllowOverride None
13        </Directory>
14        <Location />
15                DAV svn
[2919]16                SVNPath ${cfg.web.sites.svn.repopath}
[2918]17                AuthType Basic
[2919]18                AuthName "${cfg.web.sites.svn.authname}"
19                AuthUserFile ${cfg.web.sites.svn.get('dav', '/etc/apache2/dav_svn.passwd')}
[2918]20                <LimitExcept GET PROPFIND OPTIONS REPORT>
21                        Require valid-user
22                </LimitExcept>
23        </Location>
24
25        ErrorLog /var/log/apache2/error.log
26
27        # Possible values include: debug, info, notice, warn, error, crit,
28        # alert, emerg.
29        LogLevel warn
30
31        CustomLog /var/log/apache2/svn_access.log combined
32        ServerSignature On
33
34        SSLEngine on
35
36        SSLCertificateFile ${cfg.web.ssl.cert}
37        SSLCertificateKeyFile ${cfg.web.ssl.key}
38</VirtualHost>
39
[2919]40Alias ${cfg.web.sites.svn.alias} ${cfg.web.sites.svn.localpath}
[2918]41
[2919]42<Directory /${cfg.web.sites.svn.localpath}>
[2918]43                Options Indexes FollowSymLinks MultiViews
44                AllowOverride None
45                Order allow,deny
46                allow from all
47</Directory>
Note: See TracBrowser for help on using the repository browser.