User guide

138 ExtremeWarePx1 1.2 Command Reference Guide
Commands for Configuring Servers and Services
For more information about VRRP, see Chapter 5; for a description of the commands to gateway mode,
see Chapter 4.
You must use the build command to commit the conÞguration changes made by this command.
After you create a layer 7 virtual service, you must conÞgure domains for the service.
Configuring an HTTP Service. If the class of a service is http, the switch can examine the HTTP
header in a client request and select a server group based on the domain name, URL, or both. In
addition, it can examine any cookie with the client request to identify the server to be used.
You can conÞgure domains for an HTTP service. Each domain is a DNS domain that is used at the
service. If the service uses the domain speciÞed in the client request to select a server group, you must
use the configure domain command to conÞgure each recognized domain name. In addition, you must
use the configure domain default command to conÞgure a default domain.
If the service uses only the URL (and not the domain) to select a server group, you use the configure
domain
command to conÞgure a single domain with the special domain name "*".
For each conÞgured domain (including the default), you must conÞgure pattern rules that select a sever
group based on the URL in the client request.
If the service uses cookies to maintain a session between a client and a particular web server, the service
must include a default domain whose default pattern rule is created by configure pattern-rule
default cookie-name
command. This default patter rule identiÞes the cookie name to be matched, the
cookie persistence mode used by the service, and the server group to be used for client requests that
include cookies.
Configuring an HTTPS Service. If the class of a service is https, the header is encrypted, so the
switch cannot identify the domain name or URL. To conÞgure an HTTPS service, you must use the
configure domain default command to conÞgure a default domain and the configure pattern-rule
default
command to conÞgure a default pattern rule. This pattern rule speciÞes the server group to be
used by the service. SSL session identiÞer persistence is used to maintain a session between a client and
a particular web server.
Example
This example creates an HTTP service that uses only the URL in a client request to select a server group.
SummitPx1:5 # config service vip 64.1.2.12 port 80 protocol tcp L7 class http
* SummitPx1:6 # configure domain name *
...
* SummitPx1:10 # build
This example creates an HTTPS service.
SummitPx1:18 # config service vip 64.1.2.14 port 80 protocol tcp L7 class https
* SummitPx1:19 # config domain default
* SummitPx1:20 # config pattern-rule default server-group-name group1
* SummitPx1:21 # build
History
This form of this command was available in ExtremeWarePx 1.2.