subversion的库在web客户端不能显示
apache.org上下载了apache-2.2.3,使用以下命令编译:
[Copy to clipboard] [ - ]
CODE:
# ./configure –enable-dav –enable-so –prifix=/usr/local/apache
# make
# make install
下载subversion-1.4.2.tar.gz并编译:
[Copy to clipboard] [ - ]
CODE:
# ./configure –prefix=/usr/local/subversion -with-apxs=/usr/local/apache/bin/apxs
# make
# make install
然后看到 subversion在/usr/local/apache/modules/下生成文件mod_authz_svn.so和mod_dav_svn.so。
并在apache配置文件http.conf自动加入
[Copy to clipboard] [ - ]
CODE:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
建立仓库:
[Copy to clipboard] [ - ]
CODE:
svnadmin create /usr/local/svnrepos
在conf/extra/httpd-info.conf中加入:
[Copy to clipboard] [ - ]
CODE:
<Location /svn>
DAV svn
SVNPath /usr/local/svnrepos
</Location>
但是我在客户端访问http://server/svn的时候,提示404 not found,在apache的日志文件error.log里看到:
[Copy to clipboard] [ - ]
CODE:
File does not exist: /usr/local/apache/htdocs/svn
看上去这个模块并没有生效,apache依然去找svn这个目录, 不知道哪里出错?
以下是模块加载情况:
[code]
./apachectl -e debug
[Tue Dec 05 13:11:02 2006] [ debug ] mod_so.c(246): loaded module dav_svn_module
[Tue Dec 05 13:11:02 2006] [ debug ] mod_so.c(246): loaded module authz_svn_module
[/code