Unterstützung für Apache mit mod_proxy konfigurieren

Um eine Instanz von Apache HTTP Server für die Unterstützung des Proxyzugriffs auf RWP einzurichten, müssen Sie den Apache HTTP Server mit Proxyunterstützung konfigurieren, die vom Apache-Modul mod_proxy bereitgestellt wird. Detaillierte Informationen dazu finden Sie unter http://www.apache.org/. Nachstehend finden Sie eine Zusammenfassung der Schritte, die Sie ausführen müssen:
  1. Konfigurieren Sie den Apache HTTP Server so, dass das Modul mod_proxy und die anderen Module, von denen er abhängt, geladen werden. In der Regel müssen Sie dazu in der Apache-Datei httpd.conf die Kommentarzeichen von verschiedenen LoadModule-Steueranweisungen entfernen, die sich auf mod_proxy-Unterstützung beziehen. Beispiel:
    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. Entfernen Sie in httpd.conf die Kommentarzeichen von der Steueranweisung ProxyRequests On im Block <IfModule mod_Proxy.c>:
    <IfModule mod_proxy.c>
    ProxyRequests On
    </IfModule>

    Ändern Sie, falls Sie Reverse-Proxy-Unterstützung konfigurieren, den Wert des Parameters ProxyRequests von On in Off. Behalten Sie bei Forward-Proxy-Unterstützung den Wert On für diesen Parameter bei. Die Einstellung Off für ProxyRequests bewirkt keine Inaktivierung der Verwendung von ProxyPass-Steueranweisungen.

  3. Fügen Sie in httpd.conf die entsprechenden ProxyPass- und ProxyPassReverse-Steueranweisungen in den Block <IfModule mod_proxy.c> ein. ProxyPass- und ProxyPassReverse-Steueranweisungen sind anwendungsspezifisch.

    In diesem Beispiel steht Hostname für den Namen des RWP-Server-Hosts und Port für eine optionale Portnummer, die Sie angeben müssen, wenn Sie den Standardport geändert haben, an dem RWP für HTTP-Anforderungen empfangsbereit ist (siehe Abschnitt HTTP-Standardport für RWP ändern).

    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/

    Mit den folgenden Steueranweisungen wird beispielsweise der Proxy-Server für die Unterstützung des Zugriffs der Rational ClearQuest Web-Schnittstelle auf einen RWP-Prozess konfiguriert, der an Port 81 eines Hosts namens RWP_host empfangsbereit ist.

    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/
    Anmerkung: Die in diesem Beispiel verwendeten Webadressen müssen in der Datei httpd.conf genau so geschrieben werden wie angegeben, mit Ausnahme des Hostnamens und der optionalen Portnummer.

    Fügen Sie für die ClearCase Web-Schnittstelle folgende ProxyPass- und ProxyPassReverse-Steueranweisungen hinzu:

    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 ist der Name des RWP-Server-Hosts und Port eine optionale Portnummer, die Sie angeben müssen, wenn Sie den Standardport geändert haben, an dem RWP für HTTP-Anforderungen empfangsbereit ist (siehe Abschnitt HTTP-Standardport für RWP ändern). Mit den folgenden Steueranweisungen wird beispielsweise der Proxy-Server für die Unterstützung des Zugriffs der ClearCase Web-Schnittstelle auf einen RWP-Prozess konfiguriert, der an Port 81 eines Hosts namens RWP_host empfangsbereit ist.

    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

    Fügen Sie für die ClearQuest Web-Schnittstelle folgende ProxyPass- und ProxyPassReverse-Steueranweisungen hinzu:

    • Fügen Sie für die ClearQuest Web-Schnittstelle die ProxyPass- und ProxyPassReverse-Steueranweisungen im folgenden Format für die Webadresse von ccweb hinzu:

      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 ist der Name des RWP-Server-Hosts und Port eine optionale Portnummer, die Sie angeben müssen, wenn Sie den Standardport geändert haben, an dem RWP für HTTP-Anforderungen empfangsbereit ist. Im folgenden Beispiel wird der Proxy-Zugriff der ClearQuest Web-Schnittstelle auf einen RWP-Prozess unterstützt, der an Port 81 eines Hosts namens 'RWP_host' empfangsbereit ist.

    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/

    Die von den Webschnittstellen verwendeten Webadressen zu den IBM Produkten können sich ändern, wenn Sie auf dem RWP-Host ein neues Release von ClearCase, ClearQuest oder andern IBM Produkten installieren. Sie finden die aktuellen Webadressen zu den IBM Produkten auf dem RWP-Host in den *.conf-Dateien, die sich im RWP-Verzeichnis conf/include befinden. Die Webadressen der Anwendungen sind als Argumente in Alias- oder JkMount-Steueranweisungen eingebettet. JkMount /CQWeb/* ajp13 beispielsweise zeigt an, dass /CQWeb eine von RWP unterstützte Webadresse ist (lassen Sie das abschließende '/*' weg). In ähnlicher Weise zeigt Alias /ccweb "_CC_HOME_/web" an, dass /ccweb eine von RWP unterstützte Webadresse ist.



Feedback