Subversion을 사용할 때, 자신의 서버가 있다면 http://svn.example.com/[project name] 형태로, svn 이라는 호스트를 추가하여 사용하고 싶을 것이다. 이렇게 하나의 서버에서 www, svn 등의 여러 호스트를 추가하여 사용하고고 싶을 때 필요한 2가지 요소는 바로 VirtualHost와 Multiple Repository이다.
 그러나 여기저기 알려진 대로 설정을 했을 때 겪게 되는 문제 중 하나가 바로, 설정을 마친 후에 웹브라우저를 통해 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.com
        ServerAdmin webmaster@localhost

# 이 DocumentRoot 를 삭제해야 한다.
# DocumentRoot /var/svn/svn.example.com
        <Directory />
                Dav             svn
                SVNParentPath   /var/svn/svn.example.com

                Satisfy         Any
                Require         valid-user

                AuthType        Basic
                AuthName        "example.com Repository"
                AuthUserFile    /var/svn/svn.example.com/conf/htpasswd
                AuthzSVNAccessFile /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 warn

        CustomLog /var/log/apache2/access.log combined
</VirtualHost>
 궁금한 점이 있으면 댓글이나 메일 주시면 자세히 알려드리겠다.
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 이린

2008/11/30 17:30 2008/11/30 17:30
, , , , ,
Response
A trackback , 6 Comments
RSS :
http://eerien.com/blog/rss/response/165


블로그 이미지

기괴한황혼.

- 이린

Notices

  1. 이린.

Archives

Authors

  1. 이린

Calendar

«   2010/08   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Site Stats

Total hits:
429241
Today:
8
Yesterday:
21