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>

    如果未指定这些值,则网关以默认值执行正常操作。