Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

ACE - Defining multiple web sites on same VIP

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
Silver

Re: ACE - Defining multiple web sites on same VIP

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

214
Views
0
Helpful
1
Replies