Table Of Contents
Selective Enabling of Applications Using an HTTP or HTTPS Server
Information About Selective Enabling of Applications Using an HTTP or HTTPS Server
Selective Enabling of Applications Within the HTTP and HTTPS Infrastructure
How to Enable Selected Applications Using an HTTP or HTTPS Server
Enabling Selected HTTP Applications
Enabling Selected HTTPS Applications
Configuration Examples for Selective Enabling of Applications Using an HTTP or HTTPS Server
Enabling Selected HTTP and HTTPS Applications: Example
ip http active-session-modules
ip http secure-active-session-modules
Selective Enabling of Applications Using an HTTP or HTTPS Server
HTTP Server - Enabling of Applications
The Selective Enabling of Applications Using an HTTP or HTTPS Server feature eliminates a potential security vulnerability by providing a facility to enable selected HTTP and HTTP over Secure Socket Layer (HTTPS) services on both the Cisco IOS HTTP and HTTPS server infrastructure. This feature also provides the capability to view the current state of the HTTP and HTTPS services, including which services are enabled or disabled.
Feature History for the Selective Enabling of Applications Using an HTTP or HTTPS Server Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Information About Selective Enabling of Applications Using an HTTP or HTTPS Server
•
How to Enable Selected Applications Using an HTTP or HTTPS Server
•
Configuration Examples for Selective Enabling of Applications Using an HTTP or HTTPS Server
Information About Selective Enabling of Applications Using an HTTP or HTTPS Server
To use the Selective Enabling of Applications Using an HTTP or HTTPS Server feature, you should understand the following concept:
•
Selective Enabling of Applications Within the HTTP and HTTPS Infrastructure
Selective Enabling of Applications Within the HTTP and HTTPS Infrastructure
The Selective Enabling of Applications Using an HTTP or HTTPS Server feature eliminates a potential security vulnerability by providing a facility to enable selected HTTP and HTTPS services on both the Cisco IOS HTTP and HTTPS server infrastructure. This feature also provides the capability to view the current state of the HTTP and HTTPS services, including which services are enabled or disabled.
Prior to this feature, HTTP or HTTPS applications running on a router or a switch, were either all enabled or all disabled when the HTTP server or HTTPS server was enabled or disabled, respectively (using the ip http server and ip http secure-server commands). In the situation where all HTTP or HTTPS applications were enabled, remote end-users were given potential access to services that could allow them to pose a potential security threat to service providers.
With this new feature, the Cisco IOS HTTP and HTTPS infrastructure provides a way to enable only selected HTTP and HTTPS applications to run on a router or a switch, thereby bypassing a potential security vulnerability. Selected HTTP and HTTPS applications can be enabled using the new ip http active-session-modules and ip http secure-active-session-modules configuration commands, respectively.
Note
The maximum number of sessions that can be registered with the Cisco IOS HTTP or HTTPS server is 32.
How to Enable Selected Applications Using an HTTP or HTTPS Server
This section contains the following procedures:
•
Enabling Selected HTTP Applications
•
Enabling Selected HTTPS Applications
Enabling Selected HTTP Applications
Perform this task to selectively enable the HTTP applications that will service incoming HTTP requests from remote clients.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip http session-module-list listname prefix1 [prefix2,..., prefixn]
4.
ip http active-session-modules {listname | none | all}
5.
end
6.
show ip http server session-module
DETAILED STEPS
Enabling Selected HTTPS Applications
Perform this task to selectively enable the HTTPS applications that will service incoming HTTPS requests from remote clients.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip http session-module-list listname prefix1 [prefix2,..., prefixn]
4.
ip http secure-active-session-modules {listname | none | all}
5.
end
6.
show ip http server session-module
DETAILED STEPS
Configuration Examples for Selective Enabling of Applications Using an HTTP or HTTPS Server
This section provides the following configuration example:
•
Enabling Selected HTTP and HTTPS Applications: Example
Enabling Selected HTTP and HTTPS Applications: Example
The following configuration sample shows a configuration with different set of services available for HTTP and HTTPS requests. In this example, all HTTP applications are enabled for providing services to remote clients, but for HTTPS services, only the HTTPS applications defined in list1 (Simple Certificate Enrollment Protocol [SCEP] and HOME_PAGE) are enabled.
ip http session-module-list list1 SCEP,HOME_PAGEip http active-session-modules allip http serverip http secure-serverip http secure-active-session-modules list1Additional References
The following sections provide references related to the Selective Enabling of Applications Using an HTTP or HTTPS Server feature.
Related Documents
Related Topic Document TitleAdditional HTTP configuration information
"Using the Cisco Web Browser User Interface" chapter in the section "Cisco IOS User Interfaces" in the Cisco IOS Configuration Fundamentals and Network Management Configuration Guide, Release 12.3T
Additional HTTPS configuration information
HTTPS - HTTP Server and Client with SSL 3.0, Cisco IOS Release 12.2(15)T feature module.
Additional HTTP and HTTPS commands
Cisco IOS Configuration Fundamentals and Network Management Command Reference, Release 12.3T
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
MIBs
MIBs MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new and modified commands only.
•
ip http active-session-modules
•
ip http secure-active-session-modules
ip http active-session-modules
To selectively enable HTTP applications that will service incoming HTTP requests from remote clients, use the ip http active-session-modules command in global configuration mode. Use the no form of this command to return to the default, which is that all HTTP services will be enabled.
ip http active-session-modules {listname | none | all}
no ip http active-session-modules {listname}
Syntax Description
Defaults
If no arguments or keywords are specified, all HTTP services will be enabled by default.
Command Modes
Global configuration
Command History
Usage Guidelines
Use the ip http active-session-modules command to selectively enable HTTP applications, for servicing incoming HTTP requests from remote clients. With this command, a selected list of applications can be enabled. All the applications can be enabled or none of the applications can be enabled, in other words, all disabled. Use the ip http session-module-list command to define a list of HTTP or HTTPS application names to be enabled. If an HTTP request is made for a service that is disabled, a 404 error message is displayed in the remote client browser.
Examples
The following example shows how to configure a different set of services to be available for HTTP and HTTPS requests. In this example, all HTTP applications are enabled for providing services to remote clients, but for HTTPS services, only the HTTPS applications defined in list1 (Simple Certificate Enrollment Protocol [SCEP] and HOME_PAGE) are enabled.
ip http session-module-list list1 SCEP,HOME_PAGEip http active-session-modules allip http serverip http secure-serverip http secure-active-session-modules list1Related Commands
ip http secure-active-session-modules
To selectively enable HTTPS applications for servicing incoming HTTPS requests from remote clients, use the ip http secure-active-session-modules command in global configuration mode. Use the no form of this command to return to the default, which is that all HTTPS services will be enabled.
ip http secure-active-session-modules {listname | none | all}
no ip http secure-active-session-modules
Syntax Description
Defaults
If no arguments or keywords are specified, all HTTPS services will be enabled by default.
Command Modes
Global configuration
Command History
Usage Guidelines
Use the ip http secure-active-session-modules command to selectively enable HTTPS applications, for servicing incoming HTTPS requests from remote clients. With this command, a selected list of applications can be enabled. All the applications can be enabled or none of the applications can be enabled, in other words, all disabled. Use the ip http session-module-list command to define a list of HTTP or HTTPS application names to be enabled. If an HTTP request is made for a service that is disabled, a 404 error message is displayed in the remote client browser.
Examples
The following example shows how to configure a different set of services to be available for HTTP and HTTPS requests. In this example, all HTTP applications are enabled for providing services to remote clients, but for HTTPS services, only the HTTPS applications defined in list1 (Simple Certificate Enrollment Protocol [SCEP] and HOME_PAGE) are enabled.
ip http session-module-list list1 SCEP,HOME_PAGEip http active-session-modules allip http serverip http secure-serverip http secure-active-session-modules list1Related Commands
ip http session-module-list
To define a list of HTTP or HTTPS application names, use the ip http session-module-list command in global configuration mode. To remove the defined list, use the no form of this command.
ip http session-module-list listname prefix1 [prefix2,...,prefixn]
no ip http session-module-list listname prefix1 [prefix2,...,prefixn]
Syntax Description
Defaults
No list of HTTP or HTTPS application names is defined.
Command Modes
Global configuration
Command History
Usage Guidelines
Use this command to define a list of HTTP or HTTPS application names. The defined list can then be used by the ip http active-session-modules or ip http secure-active-session-modules commands to selectively enable HTTP or HTTPS applications, respectively, for servicing incoming HTTP and HTTPS requests from remote clients.
When defining a list of HTTP or HTTPS application names, use the following guidelines:
•
A maximum of four lists can be defined on a router or switch. Attempts to define more than four lists will fail and an error message will be displayed stating the limit restrictions.
•
An existing list can be removed using the no ip http session-module-list command.
•
You cannot reconfigure an existing list. Instead of reconfiguring an existing list, remove the existing list and create a new list with the same name.
•
There is no limit to how many application names can be in the list. However, the maximum number of sessions that can be registered with the Cisco IOS HTTP or HTTPS server is 32.
Examples
The following example shows how to configure a different set of services to be available for HTTP and HTTPS requests. In this example, all HTTP applications are enabled for providing services to remote clients, but for HTTPS services, only the HTTPS applications defined in list1 (Simple Certificate Enrollment Protocol [SCEP] and HOME_PAGE) are enabled.
ip http session-module-list list1 SCEP,HOME_PAGEip http active-session-modules allip http serverip http secure-serverip http secure-active-session-modules list1Related Commands
show ip http server
To display details about the current configuration of the HTTP server, use the show ip http server command in user EXEC or privileged EXEC mode.
show ip http server {all | status | session-module | connection | statistics | history}
Syntax Description
Command Modes
User EXEC
Privileged EXEC
Command History
Release Modification12.2(15)T
This command was introduced.
12.3(14)T
The display for the session-module keyword was updated with the Status and Secure-Status fields.
Usage Guidelines
Use this command to show detailed status information about the HTTP server.
If the HTTP secure server capability is present, the output of the show ip http server all command will also include the information found in the output of the show ip http server secure status command.
Examples
The following is sample output from the show ip http server all command:
Router# show ip http server allHTTP server status: EnabledHTTP server port: 80HTTP server authentication method: enableHTTP server access class: 0HTTP server base path:Maximum number of concurrent server connections allowed: 5Server idle time-out: 30 secondsServer life time-out: 120 secondsMaximum number of requests allowed on a connection: 2HTTP secure server capability: Not PresentHTTP server application session modules:Session module Name Handle DescriptionHomepage_Server 5 IOS Homepage ServerQDM 2 QOS Device Manager ServerHTTP IFS Server 1 HTTP based IOS File ServerQDM SA 3 QOS Device Manager Signed Applet ServerWEB_EXEC 4 HTTP based IOS EXEC ServerXSM 6 XML Session ManagerVDM 7 VPN Device Manager ServerITS 8 IOS Telephony ServiceITS_LOCDIR 9 ITS Local Directory SearchHTTP server current connections:local-ipaddress:port remote-ipaddress:port in-bytes out-bytes172.19.254.37:80 128.190.254.45:33737 70 2294HTTP server statistics:Accepted connections total: 1360HTTP server history:local-ipaddress:port remote-ipaddress:port in-bytes out-bytes end-time172.91.254.37:80 128.190.254.45:63530 60 1596 10:50:00 12/19Table 1 describes the significant fields shown in the display.
The following is sample output from the show ip http server status command:
Router# show ip http server statusHTTP server status: DisabledHTTP server port: 80HTTP server authentication method: enableHTTP server access class: 0HTTP server base path:Maximum number of concurrent server connections allowed: 5Server idle time-out: 600 secondsServer life time-out: 600 secondsMaximum number of requests allowed on a connection: 1HTTP secure server capability: PresentHTTP secure server status: DisabledHTTP secure server port: 443HTTP secure server ciphersuite: 3des-ede-cbc-sha des-cbc-sha rc4-128-md5 rc4-12aHTTP secure server client authentication: DisabledHTTP secure server trustpoint:The lines indicating the status of the HTTP secure (HTTPS) server will only be visible if your software image supports the HTTPS server. If your software image does not support SSL, only the following line will be visible:
HTTP secure server capability: Not present
The following is sample output from the show ip http server session-module command:
Router(config)# show ip http server session-moduleHTTP server application session modules:Session module Name Handle Status Secure-status DescriptionHOME_PAGE 4 Active Active IOS Homepage Server HTTP_IFS 1 ActiveActive HTTP based IOS File ServerIXI 2 Active Active IOS XML Infra Application Server WEB_EXEC 3 ActiveActive HTTP based IOS EXEC ServerQDM 5 Active Active QOS Device Manager Server QDM_SA 6 ActiveActive QOS Device Manager Signed Applet ServerXSM 7 Active Active XML Session Manager VDM 8 ActiveActive VPN Device Manager ServerXML_Api 9 Active Active XML Api ITS 10Active Active IOS Telephony ServiceITS_LOCDIR 11 Active Active ITS Local Directory Search tti-petitioner 12 ActiveActive TTI PetitionerRouter(config)#Related Commands
Copyright © 2004 Cisco Systems, Inc. All rights reserved.
This document first published March 28, 2005. Last updated: March 28, 2005.


