HTTP configuration command directory
To ensure specified HTTP request is applied, use command “ip http access-class“.
ip http access-class string
no ip http access
parameter:
string
|
Specified
standard access list name. |
command mode:
global configuration mode
explanation:
Before using this command, configure Specified standard access list.
Use
“no” format of this command to
cancel the access list to limit HTTP service request.
example:
router_config# ip access-list standard http-acl
router_config_std_nacl# permit 192.2.2.37 255.255.255.0
router_config_std_nacl# exit
router_config# ip http access-class http-acl
relevant command:
User command “ip http port” to specify the Service port of http service.
ip
http port number
parameter:
number |
Service
port of http service |
default:
Browser
default HTTP service port nuber is 80.
command mode:
global configuration mode
explanation:
After executing “http port” command, if http service is enabled, close source detection port first,and then use specified port (if not in used) to receive http service request. If http service is disabled, this command does not make any difference (temporarily).
example:
The following example changes http
service port from default number 80 to 90.
router_config# ip http server
router_config# ip http port 90
relevant command:
To enable HTTP service, use “ip http
server” command.
ip http server
no ip http server
parameter:
none
command mode:
global configuration mode
explanation:
Use this command to make router
receive HTTP service request in specified port. It will process the request and
return the result to browser.
example:
router_config# ip http server
relevant command: