Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > dav_svn.conf
【标  题】:dav_svn.conf
【关键字】:dav_svn.conf
【来  源】:http://www.cublog.cn/u/3138/showart.php?id=94594

dav_svn.conf

Your Ad Here
# dav_svn.conf - Example Subversion/Apache configuration
      #
      # For details and further options see the Apache user manual and
      # the Subversion book.

      # <Location URL> ... </Location>
      # URL controls how the repository appears to the outside world.
      # In this example clients access the repository as
http://hostname/svn/
      <Location /svn>                                 #设置访问路径

        # Uncomment this to enable the repository,
         DAV svn                                      #启用

        # Set this to the path to your repository
         SVNPath /data/subversion                     #设置储存库路径,仅支持单个储存库,该路径要可被Apache进程访问。
        #SVNParentPath /data/subversion               #如果subversion下有多个储存库,则用SVNParentPath
        # The following allows for basic http authentication.  Basic authentication
        # should not be considered secure for any particularly rigorous definition of
        # secure.

        # to create a passwd file                     #按下面的步骤创建Apache用户验证文件
        # # rm -f /etc/apache2/dav_svn.passwd
        # # htpasswd2 -c /etc/apache2/dav_svn.passwd dwhedon
        # New password:
        # Re-type new password:
        # Adding password for user dwhedon
        # #

        # Uncomment the following 3 lines to enable Basic Authentication
         AuthType Basic                               #启用Apache基础验证
         AuthName "Subversion Repository"             #设置验证框标题
         AuthUserFile /etc/apache2/dav_svn.passwd     #指定验证用户文件名

        # Uncomment the following line to enable Authz Authentication
         AuthzSVNAccessFile /etc/apache2/dav_svn.authz  #启用目录级别授权,dav_svn.authz是授权配置文档

        # The following three lines allow anonymous read, but make
        # committers authenticate themselves.

        #<LimitExcept GET PROPFIND OPTIONS REPORT>     #允许匿名访问和chechout,不允许Commit,该选项与AuthzSVNAccessFile不能同时使用
          Require valid-user                        
        #</LimitExcept>

      </Location>

 

Table 1.1. Apache httpd.conf Settings

Setting Explanation
  将通过 URL http://MyServer/svn/ 访问subversion 的版本仓库
DAV svn 告诉Apache 哪个功能模块将为这个URL提供服务 - 本例子是 Subversion module.
SVNParentPath D:\SVN 告诉 Subversion 在 D:\SVN 目录下寻找版本仓库
AuthType Basic 告诉Apache授权方式为 basic authentication, i.e. Username/password
AuthName "Subversion repositories" 在要求输入授权用户和密码的对话框中显示.提示用户的信息.(可以为中文)
AuthUserFile passwd 授权用户和密码所在的文件
AuthzSVNAccessFile Subversion版本仓库下的文件访问规则
Require valid-user 指定只有输入了正确的用户名和密码的人才可以访问这个 URL


svnaccessfile:【上一篇】
设计模式之AbstractFactory:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • 防火墙惹的祸(Oracle)
  • PropertyBag对象实现数据连续操作
  • 软盘也装大文件
  • 发现Blog一个bug
  • 个人防火墙(GREENGUARD)
  • 关于PHP操作文件的一些FAQ总结
  • 关于盗号
  • 第3回 软件测试和质量保证的关系
  • Photoshop7.0抠图实战
  • 一个经典的小程序
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.