- Table of Contents
-
- 05-Layer 3—IP Services Command Reference
- 00-Preface
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-mDNS gateway commands
- 06-mDNS relay commands
- 07-NAT commands
- 08-IP forwarding basics commands
- 09-Fast forwarding commands
- 10-Adjacency table commands
- 11-IRDP commands
- 12-IP performance optimization commands
- 13-UDP helper commands
- 14-IPv6 basics commands
- 15-DHCPv6 commands
- 16-IPv6 fast forwarding commands
- 17-Tunneling commands
- 18-GRE commands
- 19-HTTP redirect commands
- Related Documents
-
Title | Size | Download |
---|---|---|
19-HTTP redirect commands | 40.63 KB |
HTTP redirect commands
http-redirect https-port
Use http-redirect https-port to specify the HTTPS redirect listening port number.
Use undo http-redirect https-port to restore the default.
Syntax
http-redirect https-port port-number
undo http-redirect https-port
Default
The HTTPS redirect listening port number is 6654.
Views
System view
Predefined user roles
network-admin
Parameters
port-number: Specifies the TCP port number on which the HTTPS redirect service listens for HTTPS requests. The value range for the port number is 1 to 65535.
Usage guidelines
To avoid service unavailability caused by port conflict, do not specify a TCP port number used by a well-known protocol or used by any other service. To display TCP port numbers that have been used by services, use the display tcp command.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Specify 8888 as the HTTPS redirect listening port number.
<Sysname> system-view
[Sysname] http-redirect https-port 8888
http-redirect ssl-server-policy
Use http-redirect ssl-server-policy to associate an SSL server policy with the HTTPS redirect service.
Use undo http-redirect ssl-server-policy to restore the default.
Syntax
http-redirect ssl-server-policy policy-name
undo http-redirect ssl-server-policy
Default
No SSL server policy is associated with the HTTPS redirect service. The HTTPS redirect service uses a self-assigned certificate and the default SSL parameters.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies an SSL server policy by its name, a case-insensitive string of 1 to 31 characters.
Usage guidelines
HTTPS redirect is unavailable if the associated SSL server policy does not exist. You can first associate a nonexistent SSL server policy with the HTTPS redirect service and then configure the SSL server policy.
If you change the SSL server policy associated with the HTTPS redirect service, the new policy takes effect immediately.
If you perform this task multiple times, the most recent configuration takes effect.
Examples
# Associate SSL server policy policy1 with the HTTPS redirect service.
<Sysname> system-view
[Sysname] http-redirect ssl-server-policy policy1
Related commands
ssl server-policy