cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
553
Views
0
Helpful
3
Replies

ACE 4710 Redirection based on incoming Spanish Language

Stanley Fry
Level 1
Level 1

I have a customer that wants to redirect incoming traffic to a different url or host based on the end users language. Spanish in particular. What is the best way to accomplish this task with the least amount of issues.

Stan

3 Replies 3

Gilles Dufour
Cisco Employee
Cisco Employee

You will need to check if the http request contains a heade specifying the user is using spanish.

Seems like the only way.

You can use an http class-map to match traffic that has the spanish header value.

Gilles.

Can I find any sample code anywhere? I have never had to do this before

for a different language.

If you capture a sniffer trace of any HTTP traffic, you will see that every request contains a line like this :

"Accept-Language: de"

So, in this example the request contains information that the browser accept German (DE).

If you sniff a request from a spanish browser, you should see a similar line with the "SP" letters.

Then with ACE, you can match those requests with a class-map like below :

AceC6k2/Admin(config)# class-map type http load Spanish
AceC6k2/Admin(config-cmap-http-lb)# match http heade Accept-Language header-value sp
AceC6k2/Admin(config-cmap-http-lb)#

Then inside your policy-map you can use this class-map to differentiate spanish request from the others.

policy-map type


AceC6k2/Admin(config)# policy-map type loadbalance http first-match Web
AceC6k2/Admin(config-pmap-lb)#

AceC6k2/Admin(config-pmap-lb)# class-map Spanish

<.....do something here for spanish browsers .....>

AceC6k2/Admin(config-pmap-lb)# class class-default

<..... do something here for the other browsers ......>

gilles.