Setting Up the HTTP Server


This chapter describes how to set up the router's HTTP Server. It includes the following sections:

Overview

HTTP Configuration and Monitoring Prompts

Setting Up the Router's Web Server

HTTP Commands

Overview

The router has a built-in Web (HTTP) server that lets you do the following.

This chapter shows how to set up the HTTP server.

HTTP Configuration and Monitoring Prompts

HTTP commands are available at the Http Config> prompt and the Http> prompt.

To display the Http Config> prompt,

*config

Config>http
Http Config>

There is also an HTTP monitoring prompt that lets you display the settings of your Web server.

To display the Http> prompt,

*monitor

Monitor>http

Http>

Setting Up the Router's Web Server

These steps show how to set up the Web server on the router.

1. Display the Http Config> prompt.

Config>http

Http Config>

2. Enable the router's Web server. On routers that contain QuickWeb software, the router's Web server is enabled by default.

Http Config>enable

3. If necessary, adjust the following parameters for the router's Web server.

Http Config>set port=81 sessions=30 timeout=90

HTTP Commands

Table 1 summarizes the HTTP commands.

[C] means the command is available at the Http Config> prompt.

[M] means the command is available at the Http> prompt.

To display the available parameters for each command, press Space twice after you type a command. For information about using the command line interface, enter help.

Table 1 HTTP Commands

Command Function
Disable [C] Disables the Web server.

Enable [C] Enables the Web server.

Exit [C] [M] Returns to the previous prompt.

List [C] [M] Displays the current Web server configuration.

Set [C] Sets parameters for the router's Web server.

Disable [C]

Disables the router's Web server.

Syntax: disable

Example: disable

Enable [C]

Enables the router's Web server. On routers that contain QuickWeb software, the router's Web server is enabled by default. On all other routers, the Web server is disabled by default.

Syntax: enable

Example: enable

Exit [C] [M]

Returns to the previous prompt.

Syntax: exit

Example: exit

Config>

List [C] [M]

Displays the settings for the router's Web server.

Syntax: list

Example: list

HTTP Server Configuration
Enabled
Port = 80, Max Sessions = 25, Timeout = 60

Set [C]

Sets parameters for the router's Web server. These parameters apply to both QuickWeb and authentication Web sessions.

Syntax: set

port
sessions
timeout

port port#

Sets the TCP port number that the router's Web server answers. The default is 80.

Example: set port = 81

sessions

Sets the number of simultaneous TCP sessions that the Web server processes. The default is 25. The range is 5 to 2000.

Example: set sessions = 25

timeout

Sets a timeout for multiple form interactions between the user and the Web server. The default is 60 seconds. The range is 30 seconds to 300 seconds (5 minutes).

Example: set timeout = 90



Copyright © 2001, Nx Networks, Inc. All rights reserved.