DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
69
Example
This example shows how to enable the HTTP server.
Switch# configure terminal
Switch(config)# ip http server
Switch(config)#
5-5 ip http secure-server
This command is used to enable the HTTPS server. Use the ip http secure-server ssl-service-
policy command to specify which SSL service policy is used for HTTPS. Use the no form of this
command to disable the HTTPS server function.
ip http secure-server [ssl-service-policy POLICY-NAME]
no ip http secure-server
Parameters
(Optional) Specifies the SSL service policy name. Use this ssl-
service-policy keyword only if you have already declared an SSL
service policy using the ssl-service-policy command. When no
keyword is specified, a built-in local certificate will be used for
HTTPS.
Default
By default, this option is disabled.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
This command enables the HTTPS server function and uses the specified SSL service policy for
HTTPS.
Example
This example shows how to enable the HTTPS server function and use the service policy called “sp1”
for HTTPS.
Switch# configure terminal
Switch(config)# ip http secure-server ssl-service-policy sp1
Switch(config)#
5-6 ip http access-class
This command is used to specify an access list to restrict the access to the HTTP server. Use the no
form of this command to remove the access list check.
ip http access-class IP-ACL
no ip http access-class IP-ACL