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

Help with load balancing using URLs on CSS 11501

Hello

I am trying to setup load balancing using URLs on a CSS 11501 (OS version 08.20.1.01).

The access seems to work, with a small problem.

I want the access to http://172.16.20.4:8080/uat/... to served by one server (service "pacnag"). The access to http://172.16.20.4:8080/prod/... should be served by two servers (service "calnag" and "vannag").

When I access http://172.16.20.4:8080/uat/whoami.html from a web browser, the CSS is retrieving the webpage /uat/whoami.html from server "pacnag".

The access-log on Apache shows - "GET /uat/whoami.html HTTP/1.1" 200 40 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3". --> Note the "/uat/..." folder.

All web pages on server pacnag need to be placed in folder "/uat/...", and all web pages on the other two servers need to be placed under the "/prod/.." folder.

Is there a way to serve pages directly from the root of the real servers (serve web pages located directly under the root of the web server, instead of having to place all files in the /uat/... and /prod/... folders)?

In production we will use pages generated dynamically using Java on webserver. It would be nice to run the application on servers directly under the root, without having to worry about folders.

I included the relevant CSS configs.

Thank you,

Cristian

!************************** SERVICE **************************

service calnag

ip address 10.201.180.101

port 8080

keepalive uri "/"

keepalive type http

active

service pacnag

ip address 10.201.180.199

port 8080

keepalive uri "/"

keepalive type http

active

service vannag

ip address 10.201.180.85

port 8080

keepalive uri "/"

keepalive type http

active

!*************************** OWNER ***************************

owner iarqa

content iarqa-http-prod

advanced-balance arrowpoint-cookie

arrowpoint-cookie name iarqa

vip address 172.16.20.4

add service calnag

add service vannag

protocol tcp

port 8080

url "/prod/*"

active

content iarqa-http-uat

advanced-balance arrowpoint-cookie

arrowpoint-cookie name iarqa

vip address 172.16.20.4

add service pacnag

protocol tcp

port 8080

url "/uat/*"

active

  • Server Networking
2 REPLIES
Bronze

Re: Help with load balancing using URLs on CSS 11501

New Member

Re: Help with load balancing using URLs on CSS 11501

As per Cisco TAC, the CSS cannot do URL rewrites.

In my example, the real servers must have their content in /uat/... and /prod/... folders.

Thank you all,

Cristian

340
Views
5
Helpful
2
Replies
This widget could not be displayed.