SCM-Server和Apache mod_proxy

时间:2016-02-20 09:38:43

标签: apache mod-rewrite svn mod-proxy scmmanager

我尝试隐藏Apache 2.4背后的SCM-Manager。

Apache正在侦听

http://192.168.2.102

并且SCM正在监听

http://192.168.2.102:8080

this描述之后,我可以通过Apache访问SCM服务器的管理界面。使用此 mod_proxy 配置

<VirtualHost 192.168.2.102:80>
    RewriteEngine on
    <Location /scm>
        ProxyPass http://192.168.2.102:8080/scm connectiontimeout=5 timeout=30
        ProxyPassReverse http://192.168.2.102:8080/scm
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

我也可以查看我的存储库。

添加此 mod_rewrite 规则

RewriteRule ^/svn/(.*)$ /scm/svn/$1 [P]

我的目的是允许通过

访问我的回购
http://192.168.2.102/svn/REPO

但在结帐时

svn co http://192.168.2.102/svn/aaa aaa

我收到此错误:

svn: E175002: svn: E175002: E175002: Invalid URL 'http://192.168.2.102:8080/svn/aaa' requested

我还应该为重写模块设置什么以仅使用 / svn / REPO URI为我提供回购?

SK

0 个答案:

没有答案