LINUX(centos)SVN配置HTTP访问

安装 参考这个

https://lishuoboy.blog.csdn.net/article/details/126423606?spm=1001.2014.3001.5502

配置http访问,参考这个

https://www.freesion.com/article/8499463014/

对应配置文件

svn.conf

在这里插入图片描述

LoadModule dav_svn_module modules/mod_dav_svn.so 
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /axure>
    DAV svn
    SVNPath /var/svnrepos/axure
    AuthType Basic
    AuthName "Authorization Realm"
    AuthUserFile /var/svnrepos/axure/conf/httppasswd
    AuthzSVNAccessFile /var/svnrepos/axure/conf/authz
    Satisfy all
    Require valid-user
</Location>

httppasswd (命令行生成)

命令:htpasswd -b /var/svnrepos/axure/conf/httppasswd lishuo lishuo
在这里插入图片描述

   lishuo:$apr1$IpUqxMaI$6loBe5Fnt5MfqahpzJrCn1

posted on 2022-08-22 16:15  小石头小祖宗  阅读(7)  评论(0编辑  收藏  举报  来源

导航