apache下virtualhost与location合用配置转发SVN控制访问

使用apache的文件系统配置

使用virtualhost 实现location 重定向

NameVirtualHost *:80

<VirtualHost *:80>

ServerName yourmail@mail.com

<Location /RDCenter>

DEV svn

SVNPath /home/svn/repo/RDCenter

AuthzSVNAccessFile /home/svn/repo/RDCenter/conf/authz

AuthType Basic

AuthName 'Subversion.zoneyump'

AuthUserFile /home/svn/repo/authfile

Require valid-user

</Location>

ErrorLog    logs/**_log

TranserLog logs/**_log

</VirtualHost>

NameVirtualHost *:8080

<VirtualHost *:8080>

ServerName yourmail@mail.com

<Location /RDCarryOut>

DEV svn

SVNPath /home/svn/repo/RDCarryOut

AuthzSVNAccessFile /home/svn/repo/RDCarryOut/conf/authz

AuthType Basic

AuthName 'Subversion.zoneyump'

AuthUserFile /home/svn/repo/authfile

Require valid-user

</Location>

ErrorLog    logs/**_log

TranserLog logs/**_log

</VirtualHost>

posted @ 2014-03-31 14:57  重剑无锋_FQT  阅读(5407)  评论(0编辑  收藏  举报