Chapter 17: Web Hosting Configuration Guide

Web Hosting with One Virtual Group and Multiple Destination Servers

In the following example, a company web site is established with a URL of www.ctron.com. The system administrator configures the networks so that the SSR forwards web requests among four separate servers, as shown below.

Web requests forwarded to

one of the servers

10.1.1.1 Router

10.1.1.2

10.1.1.3

10.1.1.4

www.ctron.com

Internet

Web requests

to www.ctron.com Virtual IP Address: 207.135.89.16

Domain

Virtual IP

 

TCP Port

Real Server

TCP Port

Name

 

IP

 

 

 

 

 

 

 

 

 

 

www.ctron.com

207.135.89.16

80

 

10.1.1.1

80

 

 

 

 

 

 

 

 

 

 

10.1.1.2

80

 

 

 

 

 

 

 

 

 

 

10.1.1.3

80

 

 

 

 

 

 

 

 

 

 

10.1.1.4

80

 

 

 

 

 

 

The network shown above can be created with the following load-balance commands:

load-balance create group-name ctron-www virtual-ip 207.135.89.16 virtual-port 80 protocol tcp

load-balance add host-to-group 10.1.1.1-10.1.1.4 group-name ctron-www port 80

The following is an example of how to configure a simple verification check where the SSR will issue an HTTP command to retrieve an HTML page and check for the string “OK”:

load-balance set group-options ctron-www acv-command “GET /test.html” acv-reply “OK” read-till-index 25

The read-till-indexoption is not necessary if the file test.html contains “OK” as the first two characters. The read-till-indexoption is helpful if the exact index of the acv-replystring in the file is not known to the user. In the above example, the SSR will search from the beginning of the file up to the 25th character for the start of the string “OK.”

240

SmartSwitch Router User Reference Manual

Page 266
Image 266
Cabletron Systems 9032578-05 manual Web requests forwarded to One of the servers Router, Internet Web requests