Configurazione del supporto mod_proxy per Apache

Per configurare un'istanza di HTTP Server per supportare l'accesso proxy in RWP, è necessario configurare Apache HTTP Server con il supporto proxy fornito dal modulo Apache mod_proxy. Nel sito http://www.apache.org/ vi sono informazioni dettagliate sulle modalità di esecuzione di questa operazione. Di seguito viene riportato un riepilogo dei passi necessari:
  1. Configurare Apache HTTP Server per caricare il modulo mod_proxy e gli altri moduli da cui dipende. Questa operazione di solito richiede l'eliminazione del simbolo di commento dalle varie istruzioni LoadModule correlate al supporto mod_proxy nel file httpd.conf Apache. Ad esempio:
    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 
  2. Eliminare il simbolo di commento dall'istruzione ProxyRequests On nel blocco <IfModule mod_Proxy.c> nel file httpd.conf:
    <IfModule mod_proxy.c>
    ProxyRequests On
    </IfModule>

    Se si sta configurando il supporto reverse proxy, modificare il valore del parametro ProxyRequests da On a Off. Per il supporto forward proxy, lasciare questo parametro impostato su On. L'impostazione di ProxyRequests su Off non disabilita l'utilizzo delle istruzioni ProxyPass.

  3. Aggiungere le istruzioni ProxyPass e ProxyPassReverse appropriate nel blocco <IfModule mod_proxy.c> nel file httpd.conf. Le direttive ProxyPass e ProxyPassReverse sono specifiche dell'applicazione.

    In questo esempio, hostname è il nome dell'host server RWP e port è un numero di porta facoltativo, che è necessario specificare se è stata modificata la porta predefinita sui cui RWP ascolta le richieste HTTP (consultare Per modificare la porta HTTP RWP predefinita).

    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/

    Ad esempio, le seguenti istruzioni configurano il server proxy per supportare l'accesso dall'interfaccia Rational ClearQuest Web per un processo RWP in ascolto sulla porta 81 di un host denominato 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/
    Nota: gli indirizzi Web specificati in questo esempio, devono essere scritti nel file httpd.conf esattamente nel modo indicato, tranne che per il nome host e per il numero di porta facoltativo.

    Per l'interfaccia Web ClearCase, aggiungere le seguenti istruzioni ProxyPass e 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 è il nome dell'host server RWP e port è un numero di porta facoltativo, che è necessario specificare se è stata modificata la porta predefinita sui cui RWP ascolta le richieste HTTP (consultare Per modificare la porta HTTP RWP predefinita). Ad esempio, le seguenti istruzioni configurano il server proxy per supportare l'accesso dall'interfaccia Web ClearCase per un processo RWP in ascolto sulla porta 81 di un host denominato 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

    Per l'interfaccia ClearQuest Web, aggiungere le seguenti istruzioni ProxyPass e ProxyPassReverse:

    • Per l'interfaccia ClearQuest Web, aggiungere le istruzioni ProxyPass e ProxyPassReverse nel formato seguente per l'indirizzo Web ccweb.

      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 è il nome dell'host server RWP e port è un numero di porta facoltativo, che deve essere specificato se è stata modificata la porta predefinita su cui RWP ascolta le richieste HTTP. L'esempio riportato di seguito supporta l'accesso proxy dall'interfaccia ClearQuest Web per un processo RWP in ascolto sulla porta 81 di un host denominato 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/

    Gli indirizzi Web utilizzati dalle interfacce Web nei prodotti IBM possono cambiare quando si installa un nuovo rilascio di ClearCase, ClearQuest o un qualsiasi altro prodotto IBM nell'host RWP. Per ricercare gli indirizzi Web validi correntemente per i prodotti IBM nell'host RWP, esaminare i file *.conf nella directory conf/include. Gli indirizzi Web dell'applicazione sono integrati come argomenti in istruzioni Alias o JkMount. Ad esempio: JkMount /CQWeb/* ajp13 indica che /CQWeb è un indirizzo Web supportato (omettere l'asterisco finale /*). Allo stesso modo: Alias /ccweb "_CC_HOME_/web" indica che /ccweb è un indirizzo Web supportato da RWP.



Feedback