読者です 読者をやめる 読者になる 読者になる

subversion.confをvhostsにする

VPS svn vhosts ダイジェスト認証

subversion.conf

LoadModule dav_svn_module     modules/mod_dav_svn.so

<Location /svn>
    DAV svn
    SVNParentPath /var/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 /etc/httpd/.htpasswd
       Require valid-user
    </LimitExcept>
</Location>
  • vhosts.dに移動させる
$ sudo mv /etc/httpd/conf.d/subversion.conf /etc/httpd/vhosts.d/
  • いろいろと修正
$ sudo vim /etc/httpd/vhosts.d/subversion.conf
LoadModule dav_svn_module     modules/mod_dav_svn.so

<VirtualHost *:80>
    DocumentRoot /var/svn
    ServerName svn.example.com
    ErrorLog logs/svn_error_log
    CustomLog logs/svn_access_log combined
    <Location />
        DAV svn
        SVNParentPath /var/svn
        SVNListParentPath on

        # Limit write permission to list of valid users.
        <LimitExcept GET PROPFIND OPTIONS REPORT>
        # Require SSL connection for password protection.
           # SSLRequireSSL

           AuthType Digest
           AuthName "Authentication"
           AuthDigestDomain /
           AuthUserFile /etc/httpd/.htdigest
           Require valid-user
        </LimitExcept>
    </Location>
</VirtualHost>