Sun Java System Portal Server Secure Remote Access 7.2 管理指南

Procedure啟用反向代理伺服器

  1. 以超級使用者身分登入並編輯所需閘道實例的 platform.conf 檔:

    /etc/opt/SUNWportal/platform.conf. gateway-profile-name

  2. 新增下列項目:

    gateway.virtualhost= fully-qualified-gateway-host gateway-ip-address fully- qualified-reverse-proxyhost

    gateway.enable.customurl=true (此值依預設設定為 false。)。

    gateway.httpurl= http reverse-proxy-URL

    gateway.httpsurl=https reverse-proxy-URL

    gateway.httpurl 將用於覆寫在連接埠接收的回應,其中連接埠在閘道設定檔會列示為 HTTP 連接埠。

    gateway.httpsurl 將用於覆寫在連接埠接收的回應,其中連接埠在閘道設定檔會列示為 HTTPS 連接埠。

  3. 重新啟動閘道:

    ./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name> – t <gateway>

    如果不指定這些值,則閘道會預設成一般的運作方式。