さて、設定なんですがmod_dav_svnをインストールしたので/etc/httpd/conf.d/にそれっぽいファイルがあるハズなので探してみるとありました。
subversion.conf
# 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 newly created directories in /var/www. Use the command # "restorecon -R /var/www/svn" to label the repositories if migrating # from a system without SELinux enabled; to label a repository outside # /var/www, use "chcon -R -h -t httpd_sys_content_t /path/to/repos". |
cd /var/www mkdir svn chown -R apache:apache svn restorecon -R /var/www/svn |
# To create a new repository using this scheme, say, # http://localhost/repos/stuff, run as root: # # # cd /var/www/svn # # svnadmin create stuff # # chown -R apache.apache stuff |
cd /var/www/svn svnadmin create hirano chown -R apache:apache hirano |
<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> |
# # Specify a default charset for all content served; this enables # interpretation of all content as UTF-8 by default. To use the # default browser choice (ISO-8859-1), or to allow the META tags # in HTML content to override this choice, comment out this # directive: # #AddDefaultCharset UTF-8 AddDefaultCharset Windows-31J |