CLI Reference Guide HTTP Service Configuration Commands
enable service web-server
Enables the HTTP service.
Use this command to set the HTTP service's port. Use the no form of the command to restore the
default port.
Sets the HTTP service port, which is 80 or ranges from 1025
to 65535.
The default port number is 80.
Global configuration mode
You can use this command to set HTTP service's port.
The following example sets HTTP service's port number as 8080.
Ruijie#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#ip http port 8080
enable service web-server
Enables the HTTP service.
Shows the web server status.
Use this command to set the HTTPS service's port. Use the no form of the command to restore the
default port.
ip http secure-port port-number
Sets the HTTPS service port, which is 443 or ranges from