今天配置Apache + SVN实现通过http方式来访问svn服务器。经过在网上搜索“svn http”,得出这篇介绍还有这篇是比较全面的。于是按照上面的步骤一步步进行:
1、打开Apache的配置文件,将dav、dav_svn模块加载进去。
2、配置文件加入svn的location节点:<Loacation /svn>...</svn>
3、配置svn仓库路径、权限。
4、保存,重启Apache服务器。
5、在浏览器输入:http://localhost/svn,期待着页面中SVN几个字符的出现......
由于我在svn的Loacation节点设置了用户认证AuthUserFile,并且必须通过验证后才能访问,所以这时候弹出来个登录对话框,这也正常不过了。但是我多次输入“正确的”用户名和密码,总是提示输入验证信息不正确,连续错误三次后,直接跳转到错误页面了:Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't un