cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
352
Views
0
Helpful
1
Replies

ACE - Defining multiple web sites on same VIP

cisco_lite
Level 1
Level 1

Hi,

Currently the following config works with single website running on SERVERFARM1. There is a new requirement to host multiple websites on the same SERVERFARM1. Since the VIP would be the same, what additional statements do I need to enter into the class-map to match the host header values other than the VIP.

class-map match-all VIP-SITE1

2 match virtual-address 192.168.160.1 tcp eq www

policy-map type loadbalance first-match LB-SITE1

class class-default

sticky-serverfarm SERVERFARM1

policy-map multi-match LB-VIP-FROM-CLIENT

class VIP-SITE1

loadbalance vip inservice

loadbalance policy LB-SITE1

loadbalance vip icmp-reply

1 Reply 1

dario.didio
Level 4
Level 4

If you want to match on the host-header, following config should work:

serverfarm host SERVERFARM1

...

class-map match-all VIP-SITE

2 match virtual-address 192.168.160.1 tcp eq www

class-map type http loadbalance match-any SITE1

match http header Host header-value http://www.site1.com

class-map type http loadbalance match-any SITE2

match http header Host header-value http://www.site2.com

class-map type http loadbalance match-any SITE3

match http header Host header-value http://www.site3.com

policy-map type loadbalance http first-match SITE_L7_POLICY

class SITE1

serverfarm SERVERFARM1

class SITE2

serverfarm SERVERFARM1

class SITE3

serverfarm SERVERFARM1

policy-map multi-match VIPs

class VIP-SITE

loadbalance vip inservice

loadbalance policy SITE_L7_POLICY

loadbalance vip icmp-reply active

HTH,

Dario

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: