< Home

v-gateway http-redirect enable

Function

The v-gateway http-redirect enable command enables the HTTP redirection function of the virtual gateway.

The undo v-gateway http-redirect enable command disables the HTTP redirection function of the virtual gateway.

Format

v-gateway v-gateway-name http-redirect enable

undo v-gateway v-gateway-name http-redirect enable

Parameters

Parameter Description Value
v-gateway-name Specifies the name of a virtual gateway. The value must be the name of an existing virtual gateway.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the function is disabled.

Using the v-gateway http-redirect enable command, you can enable the virtual gateway to redirect the domain name, IP address, http:// domain name, or http://IP, which is entered by the user in the Web browser, to the https:// domain name or the homepage of https://IP.

Note that this function involves port 80, which is also the default port of the Web Manager. Therefore, before enabling this function, run the undo web-manager enable command in the system view to disable the web manager.

Example

# Configure the HTTP redirection function of virtual gateway gateway.

<sysname> system-view
[sysname] v-gateway abc http-redirect enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >