ssl - https

I'm in the process of setting up a secure server and I have found some helpful instructions for getting a self-signed certificate here and here.

I had to yum install mod_dav_svn and mod_ssl so I could setup an https connection to my server.  Then I installed the certificates in /etc/httpd/conf.d and pointed the ssl.conf file in that folder to the certificates and that was it.

I edited the httpd.conf file so that it doesn't listen to port 80 (no http) and added the following text
# Subversion setting
<Location /svn>
  DAV svn
  SVNParentPath /path/to/svn/repos

  # Authentication: Basic
  AuthName "Subversion repository"
  AuthType Basic
  AuthUserFile /path/to/auth/file

  # Authorization: Authenticated users only
  Require valid-user
</Location>
Finally, I only opened port 443 for https on the firewall.

No comments: