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>
Si vous configurez la prise en charge de proxy inverse, changez la valeur du paramètre ProxyRequests de On en Off. Pour la prise en charge de proxy direct, laissez ce paramètre défini sur On. Définir ProxyRequests sur Off n'interdit cependant pas d'utiliser les directives ProxyPass.
Dans cet exemple, nomhôte correspond au nom d'hôte du serveur RWP et port est un numéro de port facultatif, que vous devez spécifier si vous avez modifié le port par défaut sur lequel la plateforme RWP écoute les requêtes HTTP (voir Modification du port HTTP par défaut de la plateforme RWP).
ProxyPass / http://nomhôte[:port]/ ProxyPass /cqweb/ http://nomhôte[:port]/cqweb/ ProxyPass /wre/ http://nomhôte[:port]/wre/ ProxyPass /common/ http://nomhôte[:port]/common/ ProxyPass /px/ http://nomhôte[:port]/wre/px/ ProxyPass /wpf/ http://nomhôte[:port]/wre/wpf/ ProxyPass /dct/ http://nomhôte[:port]/dct/ ProxyPass /scripts/ http://nomhôte[:port]/scripts/ ProxyPass /view/ http://nomhôte[:port]/view/ ProxyPass /siteconfig/ http://nomhôte[:port]/wre/siteconfig/ ProxyPass /help/ http://nomhôte[:port]/view/browser/help/ ProxyPass /doc/ http://nomhôte[:port]/doc/ ProxyPass /html/ http://nomhôte[:port]/wre/common/html/ ProxyPassReverse / http://nomhôte[:port]/ ProxyPassReverse /cqweb/ http://nomhôte[:port]/cqweb/ ProxyPassReverse /wre/ http://nomhôte[:port]/wre/ ProxyPassReverse /common/ http://nomhôte[:port]/common/ ProxyPassReverse /px/ http://nomhôte[:port]/wre/px/ ProxyPassReverse /wpf/ http://nomhôte[:port]/wre/wpf/ ProxyPassReverse /dct/ http://nomhôte[:port]/dct/ ProxyPassReverse /scripts/ http://nomhôte[:port]/scripts/ ProxyPassReverse /view/ http://nomhôte[:port]/view/ ProxyPassReverse /siteconfig/ http://nomhôte[:port]/wre/siteconfig/ ProxyPassReverse /help/ http://nomhôte[:port]/view/browser/help/ ProxyPassReverse /doc/ http://nomhôte[:port]/doc/ ProxyPassReverse /html/ http://nomhôte[:port]/wre/common/html/
Ainsi, les directives suivantes configurent le serveur proxy pour prendre en charge l'accès par l'interface Rational ClearCase Web à un processus RWP en mode écoute sur le port 81 d'un hôte nommé RWP_host.
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/
Pour l'interface Web ClearCase, ajoutez ces directives ProxyPass et ProxyPassReverse :
ProxyPass /ccweb http://nomhôte[:port]/ccweb
ProxyPassReverse /ccweb http://nomhôte[:port]/ccweb
ProxyPass /Java_Plugins http://nomhôte[:port]/Java_Plugins
ProxyPassReverse /Java_Plugins http://nomhôte[:port]/Java_Plugins
nomhôte correspond au nom d'hôte du serveur RWP et port est un numéro de port facultatif, que vous devez spécifier si vous avez modifié le port par défaut sur lequel la plateforme RWP écoute les requêtes HTTP (voir Modification du port HTTP par défaut de la plateforme RWP). Ainsi, les directives suivantes configurent le serveur proxy pour prendre en charge l'accès par l'interface Web ClearCase à un processus RWP en mode écoute sur le port 81 d'un hôte nommé RWP_host.
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
Pour l'interface ClearQuest Web, ajoutez ces directives ProxyPass et ProxyPassReverse :
ProxyPass /wpf/ http://nomhôte[:port]/wpf/
ProxyPass /px/ http://nomhôte[:port]/px/
ProxyPass /images/ http://nomhôte[:port]/images/
ProxyPass /dct/ http://nomhôte[:port]/dct/
ProxyPass /common/ http://nomhôte[:port]/common/
ProxyPass /../view/ http://nomhôte[:port]/view/
ProxyPass /view/ http://nomhôte[:port]/view/
ProxyPass /cqweb/ http://nomhôte[:port]/cqweb/
ProxyPass /cqattachments/ http://nomhôte[:port]/cqattachments/
ProxyPassReverse / http://nomhôte[:port]/
Le nomhôte correspond au nom d'hôte du serveur RWP et port est un numéro de port facultatif que vous devez spécifier si vous avez modifié le port par défaut sur lequel la plateforme RWP écoute les requêtes HTTP. L'exemple suivant prend en charge l'accès proxy par l'interface ClearQuest Web à un processus RWP en mode écoute sur le port 81 d'un hôte nommé RWP_host.
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/
Les adresses Web utilisées par les interfaces Web des produits IBM peuvent changer lorsque vous installez une nouvelle édition de ClearCase, ClearQuest ou tout autre produit IBM sur l'hôte RWP. Pour trouver les adresses Web à jour des produits IBM sur l'hôte RWP, consultez les fichiers *.conf du répertoire RWP conf/include. Les adresses Web des applications sont intégrées en tant qu'arguments dans les directives Alias ou JkMount. Par exemple : JkMount /CQWeb/* ajp13 indique que /CQWeb est une adresse Web prise en charge par la plateforme RWP (ne pas prendre en compte les caractères /* ). De la même façon : Alias /ccweb "_CC_HOME_/web" indique que /ccweb est une adresse Web prise en charge par RWP.