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.
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. |
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.