Configuring HTTP
Beginning with release 4.1(2b), Cisco IMC supports separate HTTPS and HTTP communication services. You can disable only HTTP services using this functionality.
This functionality is supported only on the following servers:
-
Cisco UCS C220 M5
-
Cisco UCS C240 M5
-
Cisco UCS C480 M5
-
Cisco UCS C480 ML M5
-
Cisco UCS C240 SD M5
-
Cisco UCS C125 M5
-
Cisco UCS S3260 M4/M5
Note |
If Redirect HTTP to HTTPS Enabled was disabled in any release earlier than 4.1(2b), then after upgrading to release 4.1(2b) or later, HTTP Enabled value is set to Disabled by the system. |
Before you begin
You must log in as a user with admin privileges to configure HTTP.
Procedure
Command or Action | Purpose | |
---|---|---|
Step 1 |
Server# scope http |
Enters the HTTP command mode. |
Step 2 |
Server /http # set enabled {yes | no} |
Enables or disables HTTP and HTTPS service on the Cisco IMC. |
Step 3 |
Server /http # set http-enabled {yes | no} |
Enables or disables HTTP services on the Cisco IMC. |
Step 4 |
Server /http # set http-port number |
Sets the port to use for HTTP communication. The default is 80. |
Step 5 |
Server /http # set https-port number |
Sets the port to use for HTTPS communication. The default is 443. |
Step 6 |
Server /http # set http-redirect {yes | no} |
Enables or disables the redirection of an HTTP request to HTTPS. |
Step 7 |
Server /http # set timeout seconds |
Sets the number of seconds to wait between HTTP requests before the Cisco IMC times out and terminates the session. Enter an integer between 60 and 10,800. The default is 1,800 seconds. |
Step 8 |
Server /http # commit |
Commits the transaction to the system configuration. |
Example
This example configures HTTP for the Cisco IMC:
Server# scope http
Server /http # set enabled yes
Server /http *# set http-port 80
Server /http *# set https-port 443
Server /http *# set http-redirect yes
Server /http *# set timeout 1800
Server /http *# commit
Server /http # show
HTTP Port HTTPS Port Timeout Active Sessions Enabled HTTP Redirected
---------- ---------- -------- --------------- ------- ----------------
80 443 1800 0 yes yes
Server /http #