Command Reference HTTP Service Commands
7 HTTP Service Commands
7.1 enable service web-server
Use this command to enable the HTTP service function.
Use the no or default form of this command to disable the HTTP service function.
enable service web-server [ http | https | all ]
no enable service web-server [ http | https ]
default enable service web-server [ http | https ]
Enables the HTTP service.
Enables the HTTPS service.
Enables both the HTTP service and the HTTPS service.
By default, the HTTP service function is disabled.
Global configuration mode.
If run a command ends with the keyword all or without keyword, it indicates enabling both the HTTP
service and the HTTPS service; if run a command ends with keyword http, it indicates enabling the
HTTP service; if run a command ends with keyword https, it indicates enabling the HTTPS service.
Use the command no enable service web-server to disable the corresponding HTTP service.
The following example enables both the HTTP service and the HTTPS service:
Ruijie#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#enable service web-server
Use this command to configure the HTTP port number.