Skip to main content

2026 年 11 月 7 日

更改 HTTP 重定向到 Omnissa Horizon Connection Server 时使用的端口号

如果要更换 Horizon Connection Server 中的默认端口 443,并希望允许试图连接至端口 80 的 Omnissa Horizon Client 进行 HTTP 重定向,则必须在 Horizon Connection Server 中配置 locked.properties 文件。

**注意:**如果将 SSL 负载分流到中间设备,则本步骤将无效。完成 SSL 负载分流后,Horizon Connection Server 中的 HTTP 端口将向客户端提供服务。

必备条件

请确认是否更改了默认端口号 443。如果使用在安装期间配置的默认值,则无需执行本步骤来保留 HTTP 重定向规则。

步骤

  1. 在 Horizon Connection Server 计算机的网关配置文件夹中创建或编辑 locked.properties 文件。

    例如:install_directory\Omnissa\Horizon\Server\sslgateway\conf\locked.properties

    locked.properties 文件中的属性区分大小写。

  2. 向 locked.properties 文件添加以下行:

    frontMappingHttpDisabled.1=1:/admin*:missing
    frontMappingHttpDisabled.2=1:/dct*:missing
    frontMappingHttpDisabled.3=1:/rest*:missing
    frontMappingHttpDisabled.4=1:/view-vlsi*:missing
    frontMappingHttpDisabled.5=3:/error/*:file:docroot
    frontMappingHttpDisabled.6=5:*:moved:https::port
    
    

    在上述行中,变量 port 是客户端应当连接的端口号。

    如果不添加上述最后一行,则将继续重定向到端口 443。需要使用其他行来阻止非 SSL Web 服务器实例上的管理流量,同时仍提供错误页面。

  3. 重新启动 Horizon Connection Server 服务以使所做的更改生效。

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…