从Proxy Server重定向汇合页面

时间:2015-02-05 11:12:42

标签: apache confluence mod-proxy

我有两台服务器,其中一台仅运行Atlassian Confluence(未安装apache),另一台是DMZ服务器,用作反向代理服务器(mod_proxy),将地址http://confluence.office.company.com指向{ {3}}

我还希望反向代理服务器上的Apache将页面/browsepeople.action重定向到索引页面(“/”)。

以下内容无效,并且在重定向方面似乎无效(页面仍然加载)。

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName confluence.office.company.com

    ProxyRequests off
    ProxyPass /  http://confluence/
    ProxyPassReverse / http://confluence/

    Redirect 301 /browsepeople.action http://confluence.office.company.com/

</VirtualHost>

需要从此页面重新定向请求以阻止其显示?它甚至不必是重定向的,我只是希望人们无法访问/browsepeople.action页面。

1 个答案:

答案 0 :(得分:0)

试试这个:

ProxyPass /error !
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 404 /error/HTTP_FORBIDDEN.html.var

RewriteEngine on
RewriteRule ^/browsepeople.action    - [F,L,P]