Follow these steps to enable the HTTP service:
To do...
Enter system view
Enable the HTTP service
Configuring the Port Number of the HTTP Service
Configuration of the port number of the HTTP service can reduce the attacks from illegal users on the
HTTP service.
Follow these steps to configure the port number of the HTTP service:
To do...
Enter system view
Configure the port number of the
HTTP service
If you execute the ip http port command for multiple times, the last configured port number is used.
Associating the HTTP Service with an ACL
By associating the HTTP service with an ACL, only the clients that pass ACL filtering are allowed to
access the device.
Follow these steps to associate the HTTP service with an ACL:
To do...
Enters system view
Associate the HTTP service with
an ACL
If you execute the ip http acl command for multiple times to associate the HTTP with different
ACLs, the HTTP service is only associated with the last specified ACL.
For the detailed introduction to ACL, refer to ACL Configuration in the Security Volume.
Use the command...
system-view
ip http enable
Use the command...
system-view
ip http port port-number
Use the command...
system-view
ip http acl acl-number
1-2
Remarks
—
Required
Enabled by default.
Remarks
—
Required
By default, the port number of the
HTTP service is 80.
Remarks
—
Required
The HTTP service is not
associated with an ACL by default.