그러나 여기저기 알려진 대로 설정을 했을 때 겪게 되는 문제 중 하나가 바로, 설정을 마친 후에 웹브라우저를 통해 http://svn.example.com/[project name]/ 으로 접속해 보면, 내용이 나오는데, 클라이언트 프로그램(TortoiseSVN이나 eclipse의 subversion 플러그인)으로 접속 해 보면 다음과 같은 메세지만 보게 된다.
Repository moved permanently to 'http://svn.example.com/[project name]/'이것은 결론적으로 DocumentRoot 의 설정 문제이다. VirtualHost의 설정에서 DocumentRoot 설정을 삭제하면 된다. 좀 더 자세한 설정 확인을 위해 내가 설정한 내용을 올린다. OS는 Ubuntu-server를 사용한다.
VirtualHost 설정
<VirtualHost *:80>ServerName svn.example.comServerAdmin webmaster@localhost# 이 DocumentRoot 를 삭제해야 한다.# DocumentRoot /var/svn/svn.example.com<Directory />Dav svnSVNParentPath /var/svn/svn.example.comSatisfy AnyRequire valid-userAuthType BasicAuthName "example.com Repository"AuthUserFile /var/svn/svn.example.com/conf/htpasswdAuthzSVNAccessFile /var/svn/svn.example.com/conf/authz</Directory>ErrorLog /var/log/apache2/error.log# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.LogLevel warnCustomLog /var/log/apache2/access.log combined</VirtualHost>
궁금한 점이 있으면 댓글이나 메일 주시면 자세히 알려드리겠다.
Posted by 이린




