< Home

http secure-server port

Function

The http secure-server port command sets a port number for an HTTPS server.

The undo http secure-server port command restores the default port number of an HTTPS server.

By default, the port number of an HTTPS server is 443.

Format

http [ ipv6 ] secure-server port port-number

undo http [ ipv6 ] secure-server port

Parameters

Parameter Description Value
ipv6 Specifies the port number for an HTTPS IPv6 server.

If this parameter is not specified, the command sets the port number for an HTTPS IPv4 server.

-
port-number Specifies the port number of an HTTPS server. The value is 443 or an integer that ranges from 1025 to 55535.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By default, the port number of an HTTPS server is 443. Attackers may frequently access an HTTPS server through the default port, consuming bandwidth, deteriorating server performance, and causing authorized users unable to access the server. You can run the http secure-server port command to specify another port number to prevent attackers from accessing the default port.

Precautions

If the http secure-server port command is configured several times, only the latest configuration takes effect.

Example

# Set the port number of an HTTPS IPv4 server to 8080.

<HUAWEI> system-view
[HUAWEI] http secure-server port 8080
# Set the port number of an HTTPS IPv6 server to 8080.
<HUAWEI> system-view
[HUAWEI] http ipv6 secure-server port 8080
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >