[AIX Solaris HP-UX Linux Windows][IBM i]

配置 IBM HTTP Server

您可以手動配置 IBM HTTP Server。

開始之前

[IBM i] IBM HTTP Server 9.0IBM® i上不受支援。

[AIX Solaris HP-UX Linux Windows]「外掛程式配置工具 (PCT)」是配置 IBM HTTP Server 來載入 WebSphere Application Server Web 伺服器外掛程式的主要方式。

「外掛程式配置工具 (PCT)」會自動配置 IBM HTTP Server。 下列步驟是配置 IBM HTTP Server 的手動指示。 編輯 Web 伺服器配置檔 中的其他程序說明如何配置其他支援的 Web 伺服器。

關於這項作業

為求清楚明瞭,範例和訊息將以多行顯示。 在 Web 伺服器配置檔中,每一項指引需各佔一行。

產品安裝路徑只是範例。

[AIX Solaris HP-UX Linux Windows]在安裝期間,「Web 伺服器外掛程式配置工具 (PCT)」會安裝虛擬 plugin-cfg.xml 檔,但這個檔案需要從應用程式伺服器上的實際檔案定期傳播。

程序

  1. 判斷 Web 伺服器的架構,以確定要載入的正確 Web 伺服器外掛程式模組,在 Windows 上通常是 32 位元,別處為 64 位元。
    [Linux][AIX][HP-UX][Solaris]
    /opt/IBM/HTTPServer/bin/versionInfo.sh | grep Architecture
    [Windows]
    c:\IBM\HTTPServer\bin\versionInfo.bat | findstr Architecture
  2. 將下列這一行附加到 httpd.conf 檔,並記下路徑中指定的架構,以載入 Web 伺服器外掛程式。
    [Linux][AIX][Solaris]
    LoadModule 
         was_ap24_module /opt/IBM/WebSphere/Plugins/bin/<arch>/mod_was_ap24_http.so
    [HP-UX]
    LoadModule 
         was_ap22_module /opt/IBM/WebSphere/Plugins/bin/<arch>/mod_was_ap24_http.sl
    
    [Windows]
    LoadModule was_ap24_module
         c:/IBM/WebSphere/Plugins/bin/<arch>/mod_was_ap24_http.dll

    在這些範例中, <arch>32bits64bits ,視 Web 伺服器架構而定。

  3. 建立必要的目錄,然後複製暫時配置檔。
    [Linux][AIX][HP-UX][Solaris]
    
          mkdir -p  /opt/IBM/WebSphere/Plugins/{logs,config}/webserver1          
          cp /opt/IBM/WebSphere/Plugins/etc/plugin-key* /opt/IBM/WebSphere/Plugins/config/webserver1/          
          cp /opt/IBM/WebSphere/Plugins/config/templates/plugin-cfg.xml /opt/IBM/WebSphere/Plugins/config/webserver1/
    [Windows]
    
          mkdir c:\IBM\WebSphere\Plugins\logs\webserver1          
          mkdir c:\IBM\WebSphere\Plugins\config\webserver1          
          copy c:\IBM\WebSphere\Plugins\etc\plugin-key* c:\IBM\WebSphere\Plugins\config\webserver1\          
          copy c:\IBM\WebSphere\Plugins\config\templates\plugin-cfg.xml c:\IBM\WebSphere\Plugins\config\webserver1\
  4. 在應用程式伺服器中登錄 Web 伺服器。

    plugin-cfg.xml 配置檔若要有用,它必須是應用程式伺服器環境所產生,能夠反映所配置的伺服器及所部署的應用程式。 定義可以在 Deployment Manager 或獨立式 Application Server 的「管理主控台」中建立。 請參閱 Web 伺服器定義

    登錄時,「管理主控台」可以產生一個 plugin-cfg.xml 檔,將它傳播到 Web 伺服器,以取代起始 plugin-cfg.xml 檔。

    對於與 Liberty 搭配使用的 Web 伺服器,請參閱 配置 Liberty 的 Web 伺服器外掛程式

  5. 將第二個指引附加至 httpd.conf 檔案,以識別 plugin-cfg.xml 檔案的路徑。
    • 不與任何 WebSphere 管理程序共存的遠端 Web 伺服器,或與 WebSphere Liberty 一起使用的 Web 伺服器:
      WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
    • 登錄於獨立式傳統應用程式伺服器的 Web 伺服器:
      WebSpherePluginConfig profile_root/standalone/config/cells/standalone/nodes/standalone/servers/webserver1/plugin-cfg.xml
    • 登錄於共存的部署管理程式的 Web 伺服器:
      WebSpherePluginConfig profile_root/config/cells/<var>dmgrcell</var>/nodes/managednode/servers/webserver1/plugin-cfg.xml

結果

這個程序會編輯及重新配置 IBM HTTP Server。

下一步

如果將外掛程式配置成支援與後端 WebSphere Application Server 之間的加密連線,mod_was_ap24_http 外掛程式模組就需要 GSKIT Secure Sockets Layer (SSL) 加密程式庫。

安裝 Web 伺服器外掛程式時,如果未安裝必要層次的 GSKIT SSL 加密程式庫,就會安裝它。 如果您將外掛程式手動複製到新的工作站,可能就沒有加密後端連線所需的 GSKIT 程式庫。

配置 Web 伺服器之後,就可以在其中安裝應用程式。 請參閱知識中心的「應用程式」一節,以取得相關資訊。

提示: 若要取消配置 Web 伺服器,請反轉手動步驟,並移除此程序中手動新增的內容。