I have first installed Fink a programm of the Fink project that enables the easy deployment of unix-based open source software on a Mac OS X Server (http://www.finkproject.org/download/). Then with Fink I downloaded a SVN server. A good description can be found at oReilly blog (http://www.devdaily.com/blog/post/mac-os-x/installing-subversion-svn-ser...). I created as admin the SVNRepository in the root directory and defined one user "jdorn" with a password in the file passwd.
With "sudo -u www /sw/bin/svnserve -d -r /SVNRepository" I have started the SVN server.
I have downloaded svnx from the apple download side as a client.
http://www.wikihow.com/Install-Subversion-on-Mac-OS-X
SVN uses port 3690 and I added the port in the router software.
Now the server can be accessed at svn://techscreen.tuwien.ac.at.
As of (almost) anything there's also a good howto on the Web for that.
Here are the basic/central steps to take.
# Subversion Configuration
<VirtualHost [server's IP address]:80>
ServerName svn.example.com
Redirect / https://svn.example.com/
</VirtualHost>
<VirtualHost [server's IP address]:443>
ServerName svn.example.com
<Location />
DAV svn
AuthType Basic
AuthName "svn.example.com"
AuthUserFile /var/local/www/svn/svn.example.com/conf/passwd
AuthzSVNAccessFile /var/local/www/svn/svn.example.com/conf/authz
SVNPath /var/local/www/svn/svn.example.com
Require valid-user
</Location>
CustomLog /var/log/apache2/svn.example.com/access.log combined
ErrorLog /var/log/apache2/svn.example.com/error.log
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
# SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>
# Trac Configuration
<VirtualHost [server's IP address]:80>
ServerName trac.example.com
Redirect / https://trac.example.com/
</VirtualHost>
<VirtualHost [server's IP address]:443>
ServerName trac.example.com
DocumentRoot /var/local/www/trac/trac.example.com/
Alias /trac/ /usr/share/trac/htdocs
<Directory "/usr/share/trac/htdocs/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonInterpreter main_interpreter
PythonOption TracEnv /var/local/www/trac/trac.example.com/
PythonOption TracUriRoot /
AuthType Basic
AuthName "trac.example.com"
# Use the SVN password file.
AuthUserFile /var/local/svn/svn.example.com/conf/passwd
Require valid-user
</Location>
CustomLog /var/log/apache2/trac.example.com/access.log combined
ErrorLog /var/log/apache2/trac.example.com/error.log
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
# SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>
Have fun! :-)
I dont know exactly what you mean by "secure" host, but
http://www.sourceforge.net and
http://www.assembla.com
offer both good platforms for cvs or svn repository, bug tracking and other stuff. If you interpret secure as non-public, assembla offers private password protected repositorys. I'm not sure if sourceforge supports this as well.
For quick exchange of small code pieces http://www.rafb.net is a good ressource.