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. And see here for current known issues.

New Member

Layer 7 loadbalance for HTML content

We're trying to understand how "match http content ...." works.

We're trying to match this:

http://www.acme.com/widgets/stories.aspx?section=prodlist1&promo=special

We've coded this:

class-map type http loadbalance match-all redirect_to_prod_site

  10 match http header Host header-value "www.acme.com"

  20 match http url /widgets/stories\.aspx

  30 match http content "section=prodlist"

It matches if we remove 30 match http content "section=prodlist"

I think the issue relates to what is meant by "content".  We've been referring to this document:

http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/classlb.html#wp1206722

The manual says this, "The ACE performs regular expression matching  against the received HTTP message body from a particular connection  based on a regular expression string in the message body (not the  header)."

We know that "match http url" stops at the "?". Isn't the body the part that comes after the "?"?

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Layer 7 loadbalance for HTML content

Hi Jeffrey,

The part after the "?" is still part of the HTTP header, not the content. On ACE, this part is named "secondary cookie"

To match on it, you can use the statement "match http cookie secondary section cookie-value prodlist1"

I hope this helps

Daniel

2 REPLIES
Cisco Employee

Layer 7 loadbalance for HTML content

Hi Jeffrey,

The part after the "?" is still part of the HTTP header, not the content. On ACE, this part is named "secondary cookie"

To match on it, you can use the statement "match http cookie secondary section cookie-value prodlist1"

I hope this helps

Daniel

New Member

Layer 7 loadbalance for HTML content

This worked. Thanks!

313
Views
0
Helpful
2
Replies
CreatePlease login to create content