The http server enable command enables the HTTP server function.
The undo http server enable command disables the HTTP server function.
The http server disable command disables the HTTP server function.
By default, the HTTP IPv4 server function is enabled, and the HTTP IPv6 server function is disabled.
Parameter | Description | Value |
---|---|---|
ipv6 | Enables or disables the HTTP IPv6 server function. If this parameter is not specified, the HTTP IPv4 server function is enabled or disabled. |
- |
Usage Scenario
After running the http server enable command to enable the HTTP server, you can use the browser to access the web NMS to manage devices.
If the web page to load does not exist, the HTTP service cannot be enabled.
Prerequisites
The HTTPS service has been enabled using the http secure-server enable command.
Precautions
After the http server enable command is run, the device receives login connection requests from all interfaces by default. Therefore, there are security risks. You are advised to run the http server-source command to specify the source interface of the HTTP server.
# Enable the HTTP IPv4 server.
<HUAWEI> system-view [HUAWEI] http secure-server enable [HUAWEI] http server enable Warning: HTTP is not a secure protocol, and it is recommended to use HTTPS. Info: Succeeded in starting the HTTP server.
<HUAWEI> system-view [HUAWEI] http ipv6 secure-server enable [HUAWEI] http ipv6 server enable Warning: HTTP is not a secure protocol, and it is recommended to use HTTPS. Info: Succeeded in starting the HTTP IPv6 server.