Waarom doe je het niet met een alias? Dus bijvoorbeeld http://000.000.000/svn? Als je SVN via yum installeerd dan doet hij dit volgens mij ook automatisch. Anders moet je even kijken of CentOS in /etc/httpd/conf.d/ een file 'subversion.conf' aanmaakt.
Installeeren: yum install subversion
En dan maak je een mapje /var/www/svn aan en een repo:
svnadmin create naamrepository
In die map.
Dan maak het bestand /etc/httpd/conf.d/subversion.conf aan:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be readable and writable by the 'apache' user. Note that if
# SELinux is enabled, the repositories must be labelled with a context
# which httpd can write to; this will happen by default for
# directories created in /var/www. Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
#
#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
#
<Location /repos>
DAV svn
SVNParentPath /var/www/svn
# Limit write permission to list of valid users.
<LimitExcept GET PROPFIND OPTIONS REPORT>
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /path/to/passwdfile
Require valid-user
</LimitExcept>
</Location>
En kun je dus http://server/repos doen ;) Vergeet ook het pad naar de passwdfile niet te checken en het bestandje aan te maken!
Nog nooit gezien, een server zonder naam, ik heb geen idee of het echt kan.
Werkt het niet wanneer je niks invult bij hostname of het bestand verwijderd?