免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2065 | 回复: 3
打印 上一主题 下一主题

SVN在apache里添加的那几行! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-05 11:08 |只看该作者 |倒序浏览
现在做好 了apache,svn也成功编译安装好了,但是要在http.conf里面添加几行东西,不知道什么意思,所以还请高手们指教一下,我的

svn的目录在/var/svnrepo/

用户和密码文件在/var/svnrepo/conf/passwd

认证文件在 /var/svnrepo/conf/authz

配置文件在/var/svnrepo/conf/svnserve.conf

****************************************************************************
我在http.conf里面是这样添加的
<location /svn/>
DAV svn
SVNParentPath /var/svnrepo/
AuthzSvnAccessFile /var/svnrepo/authz.conf    //权限配置文件   {?我不知道这个文件是配置对svn目录权限的?例如:配置对svn /目录的权限?}
AuthType Basic
AuthName "Subversion.svn"
AuthUserFile /var/svnrepo/passwd      //用户配置文件   {这个文件经过htpasswd加密,还能被系统识别么?}
Require Valid-user
</Location>
我以前没有配置过这,这是我从网上搜到的,我改了一下,但是感觉不对,所以请教一下。


还有我的htpasswd这个命令真的打不出来啊
我输入:  htpasswd -c /var/svnrepo/conf/authz.conf
就提示我:-bash: htpasswd: command not found
You have new mail in /var/spool/mail/root
我不知道为撒!

[ 本帖最后由 whydeny 于 2009-11-5 14:37 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-11-05 14:29 |只看该作者
htpasswd 的问题暂时解决了,原因是我执行的路径错了,本来应该是 /usr/local/apache2/bin/htpasswd

但是现在的问题好像成了权限问题了,http的时候报403的错误!

论坛徽章:
0
3 [报告]
发表于 2009-11-05 17:50 |只看该作者
我郁闷的很,现在又重新做了几遍但是报错又变了,这次的报错信息城这了

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

我无奈的很!

各位大侠帮帮忙吧!

论坛徽章:
0
4 [报告]
发表于 2009-11-09 01:07 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP