cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.bak
cat > /etc/apache2/httpd.conf.local << “EOF”
###############################
Alias /pub /srv/ftp/pub
<Directory /srv/ftp/pub>
Order allow,deny
Allow from all
Options Indexes
################################
Alias /wordpress /srv/wordpress
<Directory /srv/wordpress>
Order allow,deny
Allow from all
################################
Alias /phpbb /srv/phpbb
<Directory /srv/phpbb>
Order allow,deny
Allow from all
EOF
cp /etc/apache2/conf.d/subversion.conf /etc/apache2/conf.d/subversion.conf.bak
cat > /etc/apache2/subversion.conf.local << “EOF”
<IfModule mod_dav_svn.c>
<Location /repos>
DAV svn
SVNParentPath /srv/svn/repos
SVNListParentPath On
<Location /repos/notepad>
# DAV svn
# SVNPath /srv/svn/repos/notepad
# Limit write permission to list of valid users.
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName “Authorization Realm”
AuthUserFile /srv/svn/user_access/notepad_passwdfile
Require valid-user
EOF
apache2ctl -k graceful