本主題說明如何將網站設定成在安全網站管理之資源的反向 Proxy。
關於這項作業
下列步驟說明如何為一家公司(例如
www.example.com)設定反向 Proxy 配置,以使其作為安全網站(例如
internal.example.com)管理之資源的反向 Proxy。
程序
- 配置 www.example.com,類似下列範例:
<VirtualHost *:80>
ServerName host1
SSLProxyEngine On
KeyFile "c:/program files/ibm http server/clientkey.kdb"
ProxyPass /ssl/password.html https://examplehost/password.html
</VirtualHost>
- 配置 internal.example.com,類似下列範例:
<VirtualHost *:443>
SSLEnable
KeyFile "c:/program files/ibm http server/serverkey.kdb"
</VirtualHost>
結果
當瀏覽器要求
http://www.example.com/ssl/password.html 時,IBM® HTTP Server 會使用 SSL 來建立連線至
internal.ibm.com。如果
internal.example.com 需要用戶端憑證,IBM HTTP Server 會使用已為其配置之 KeyFile 的預設憑證。