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

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

Updated mako templates

File size: 1.2 KB
Line 
1<%page args="cfg, invirt_ssl" />
2
3% if cfg.web.sites.svn.port not in [80, 443]:
4  Listen ${cfg.web.sites.svn.port}
5% endif
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
16                SVNPath ${cfg.web.sites.svn.repopath}
17                AuthType Basic
18                AuthName "${cfg.web.sites.svn.authname}"
19                AuthUserFile ${cfg.web.sites.svn.get('dav', '/etc/apache2/dav_svn.passwd')}
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
40Alias ${cfg.web.sites.svn.alias} ${cfg.web.sites.svn.localpath}
41
42<Directory /${cfg.web.sites.svn.localpath}>
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.