HOWTO setup a small server

Apache2 (Webserver) with SVN/ViewVC

Installation

Prerequisit: OpenSSL, Heimdal, OpenLDAP
This pages describes the setup of an Apache2 server with Subversion and ViewVC.
In order to install the Apache2 server with Kerberos support, run the following
command:

SVN Repository

First you have to create a SVN repository (called test in this example):

# svnadmin create /data/svn/test
# chown -R www-data /data/svn/test

ViewVC Configuration

Now we configure ViewVC by modifying the following variables in its
configuration file according to our needs. The directory
/data/svn is assumed to be the base
directory where all SVN repositories are located.

Apache2 Main Configuration

The following modules are not enabled by default and are required for the
setup described here. You will have to enable them:

# a2enmod ldap
# a2enmod authnz_ldap
# a2enmod ssl

Now we can configure the Apache2 server. First of all some changes are
required in one of the main configuration files (commenting the
NameVirtualHost line is really required, the other two
modifications to the Listen lines disable IPv6):

Excerpt: /etc/apache2/ports.conf

## the next one must be commented:
#NameVirtualHost *:80
Listen 0.0.0.0:80
Listen 0.0.0.0:443

Next you can create a site configuration based on the following template
that redirects all connections to the unencrypted site to an encrypted
one.