LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so
<IfModule mod_proxy.c> ProxyRequests On </IfModule>
如果是配置逆向代理支持,则需要将 ProxyRequests 参数值从 On 更改为 Off。对于正向代理,则将此参数保留设置为 On。 将 ProxyRequests 设置为 Off 并不会禁用 ProxyPass 伪指令。
在此示例中,hostname 是 RWP 服务器主机的名称,而 port 是可选的端口号,如果更改了 RWP 侦听 HTTP 请求所在的缺省端口,则必须指定该端口号(请参阅更改缺省的 RWP HTTP 端口)。
ProxyPass / http://hostname[:port]/ ProxyPass /cqweb/ http://hostname[:port]/cqweb/ ProxyPass /wre/ http://hostname[:port]/wre/ ProxyPass /common/ http://hostname[:port]/common/ ProxyPass /px/ http://hostname[:port]/wre/px/ ProxyPass /wpf/ http://hostname[:port]/wre/wpf/ ProxyPass /dct/ http://hostname[:port]/dct/ ProxyPass /scripts/ http://hostname[:port]/scripts/ ProxyPass /view/ http://hostname[:port]/view/ ProxyPass /siteconfig/ http://hostname[:port]/wre/siteconfig/ ProxyPass /help/ http://hostname[:port]/view/browser/help/ ProxyPass /doc/ http://hostname[:port]/doc/ ProxyPass /html/ http://hostname[:port]/wre/common/html/ ProxyPassReverse / http://hostname[:port]/ ProxyPassReverse /cqweb/ http://hostname[:port]/cqweb/ ProxyPassReverse /wre/ http://hostname[:port]/wre/ ProxyPassReverse /common/ http://hostname[:port]/common/ ProxyPassReverse /px/ http://hostname[:port]/wre/px/ ProxyPassReverse /wpf/ http://hostname[:port]/wre/wpf/ ProxyPassReverse /dct/ http://hostname[:port]/dct/ ProxyPassReverse /scripts/ http://hostname[:port]/scripts/ ProxyPassReverse /view/ http://hostname[:port]/view/ ProxyPassReverse /siteconfig/ http://hostname[:port]/wre/siteconfig/ ProxyPassReverse /help/ http://hostname[:port]/view/browser/help/ ProxyPassReverse /doc/ http://hostname[:port]/doc/ ProxyPassReverse /html/ http://hostname[:port]/wre/common/html/
例如,以下伪指令将代理服务器配置为支持通过 Rational ClearQuest Web 接口对 RWP 进程进行访问,该进程在名为 RWP_host 的主机的端口 81 进行侦听。
ProxyPass / http://RWP_host:81/ ProxyPass /cqweb/ http://RWP_host:81/cqweb/ ProxyPass /wre/ http://RWP_host:81/wre/ ProxyPass /common/ http://RWP_host:81/common/ ProxyPass /px/ http://RWP_host:81/wre/px/ ProxyPass /wpf/ http://RWP_host:81/wre/wpf/ ProxyPass /dct/ http://RWP_host:81/dct/ ProxyPass /scripts/ http://RWP_host:81/scripts/ ProxyPass /view/ http://RWP_host:81/view/ ProxyPass /siteconfig/ http://RWP_host:81/wre/siteconfig/ ProxyPass /help/ http://RWP_host:81/view/browser/help/ ProxyPass /doc/ http://RWP_host:81/doc/ ProxyPass /html/ http://RWP_host:81/wre/common/html/ ProxyPassReverse / http://RWP_host:81/ProxyPassReverse /cqweb/ http://RWP_host:81/cqweb/ ProxyPassReverse /wre/ http://RWP_host:81/wre/ ProxyPassReverse /common/ http://RWP_host:81/common/ ProxyPassReverse /px/ http://RWP_host:81/wre/px/ ProxyPassReverse /wpf/ http://RWP_host:81/wre/wpf/ ProxyPassReverse /dct/ http://RWP_host:81/dct/ ProxyPassReverse /scripts/ http://RWP_host:81/scripts/ ProxyPassReverse /view/ http://RWP_host:81/view/ ProxyPassReverse /siteconfig/ http://RWP_host:81/wre/siteconfig/ ProxyPassReverse /help/ http://RWP_host:81/view/browser/help/ ProxyPassReverse /doc/ http://RWP_host:81/doc/ ProxyPassReverse /html/ http://RWP_host:81/wre/common/html/
对于 ClearCase Web 接口,需要添加以下这些 ProxyPass 和 ProxyPassReverse 伪指令:
ProxyPass /ccweb http://hostname[:port]/ccweb
ProxyPassReverse /ccweb http://hostname[:port]/ccweb
ProxyPass /Java_Plugins http://hostname[:port]/Java_Plugins
ProxyPassReverse /Java_Plugins http://hostname[:port]/Java_Plugins
hostname 是 RWP 服务器主机的名称,而 port 是可选的端口号,如果更改了 RWP 侦听 HTTP 请求所在的缺省端口,则必须指定该端口号(请参阅更改缺省的 RWP HTTP 端口)。例如,以下伪指令将代理服务器配置为支持通过 ClearCase Web 接口访问在名为 RWP_host 的主机的端口 81 侦听的 RWP 进程。
ProxyPass /ccweb http://RWP_host:81/ccweb ProxyPassReverse /ccweb http://RWP_host:81/ccweb ProxyPass /Java_Plugins http://RWP_host:81/Java_Plugins ProxyPassReverse /Java_Plugins http://RWP_host:81/Java_Plugins
对于 ClearQuest Web 接口,需要添加以下这些 ProxyPass 和 ProxyPassReverse 伪指令:
ProxyPass /wpf/ http://hostname[:port]/wpf/
ProxyPass /px/ http://hostname[:port]/px/
ProxyPass /images/ http://hostname[:port]/images/
ProxyPass /dct/ http://hostname[:port]/dct/
ProxyPass /common/ http://hostname[:port]/common/
ProxyPass /../view/ http://hostname[:port]/view/
ProxyPass /view/ http://hostname[:port]/view/
ProxyPass /cqweb/ http://hostname[:port]/cqweb/
ProxyPass /cqattachments/ http://hostname[:port]/cqattachments/
ProxyPassReverse / http://hostname[:port]/
hostname 是 RWP 服务器主机的名称,port 是可选端口号,如果更改了 RWP 侦听 HTTP 请求的缺省端口,则必须指定此端口号。以下示例支持通过 ClearQuest Web 接口对 RWP 进程进行代理访问,该进程在名为 RWP_host 的主机的端口 81 上进行侦听。
ProxyPass /wpf/ http://RWP_host:81/wpf/ ProxyPass /px/ http://RWP_host:81/px/ ProxyPass /images/ http://RWP_host:81/images/ ProxyPass /dct/ http://RWP_host:81/dct/ ProxyPass /common/ http://RWP_host:81/common/ ProxyPass /../view/ http://RWP_host:81/view/ ProxyPass /view/ http://RWP_host:81/view/ ProxyPass /cqweb/ http://RWP_host:81/cqweb/ ProxyPass /cqattachments/ http://RWP_host:81/cqattachments/ ProxyPassReverse / http://RWP_host:81/
在 RWP 主机中安装新版本的 ClearCase、ClearQuest 或任何其他 IBM 产品时,IBM 产品的 Web 接口使用的 Web 地址可能会发生变化。要查找 RWP 主机中的 IBM 产品当前有效的 Web 地址,请检查 RWP conf/include 目录中的 *.conf 文件。应用程序 Web 地址作为 Alias 或 JkMount 伪指令的自变量而嵌入。 例如:JkMount /CQWeb/* ajp13 表示 /CQWeb 是受支持的 Web 地址(忽略尾部的 /*)。同样:Alias /ccweb "_CC_HOME_/web" 表示 /ccweb 是 RWP 支持的 Web 地址。