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.
v-gateway v-gateway-name http-redirect enable
undo v-gateway v-gateway-name http-redirect enable
| Parameter | Description | Value |
|---|---|---|
| v-gateway-name | Specifies the name of a virtual gateway. | The value must be the name of an existing virtual gateway. |
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.