Skip to content

Instantly share code, notes, and snippets.

@simonmcc
Created June 8, 2010 20:56
Show Gist options
  • Save simonmcc/430645 to your computer and use it in GitHub Desktop.
Save simonmcc/430645 to your computer and use it in GitHub Desktop.
NameVirtualHost *:443
<VirtualHost 207.210.218.33:443>
ServerName svn.mccartney.ie
ServerAdmin simon@mccartney.ie
SSLEngine on
SSLCertificateFile /etc/ssl/certs/svn.mccartney.ie.pem
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /jdr/
</Directory>
<Location /jdr>
DAV svn
SVNPath "/var/lib/svn/svn_jdr"
AuthType Basic
AuthBasicProvider file
AuthUserFile /etc/apache2/svn.mccartney.ie.htpasswd
AuthName "Subversion server"
require valid-user
</Location>
<Location /simonm>
DAV svn
SVNPath "/var/lib/svn/simonm"
AuthType Basic
AuthBasicProvider file
AuthUserFile /etc/apache2/svn.mccartney.ie.htpasswd
AuthName "Subversion server"
require valid-user
</Location>
<Location /configs>
DAV svn
SVNPath "/var/lib/svn/configs"
AuthType Basic
AuthBasicProvider file
AuthUserFile /etc/apache2/svn.mccartney.ie.htpasswd
AuthName "Subversion server"
require valid-user
</Location>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment