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>
若您要配置反向的 Proxy 支援,請將 ProxyRequests 參數值從 On 變更為 Off。若是正向的 Proxy 支援,則保持參數原來的設定: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/
例如,下列指引會配置 Proxy 伺服器,以支援 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 埠)。例如,下列指引會配置 Proxy 伺服器,以支援 ClearCase Web 介面對 RWP 程序的存取,而該 RWP 程序在名為 RWP_host 的主機上接聽埠 81。
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 程序進行 Proxy 存取, 而此 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 產品時,Web 介面用來連接 IBM 產品的網址可能會改變。若要在 RWP 主機上尋找目前對 IBM 產品有效的網址,請檢查 RWP conf/include 目錄中的 *.conf 檔。應用程式的網址會以引數的形式內嵌在 Alias 或 JkMount 指引中。 例如:JkMount /CQWeb/* ajp13 表示 /CQWeb 是支援的網址(省略尾端的 /*)。同樣的,Alias /ccweb "_CC_HOME_/web" 表示 /ccweb 是 RWP 支援的網址。