Application Delivery (ADX)

Reply
Contributor
Posts: 25
Registered: ‎05-04-2009

How do I redirect a request to a different URL/domain using CSW?

There is a redirect action in CSW available but how do it work? Any 3 liner out there?

Super Contributor
Posts: 316
Registered: ‎05-01-2009

Re: How do I redirect a request to a different URL/domain using CSW?

Maybe not a 3 liner but not very big. The following example is going to send a redirect out. Request to http://www.whatever.com/support are getting redirected to http://support.whatever.com.

The request needs to arrive at the ServerIron - that means www.whatever.com requests need to hit the ServerIron and I am assuming www.whatever.com's IP address is the address of the virtual server below:

  csw-rule "r1" url prefix "/support"
  !
  csw-policy "p1"
   match "r1" redirect "support.whatever.com" "/"
  !
  server real rs18 10.45.4.18
   port http
   port http url "HEAD /"
  !
  server virtual vip1 10.45.4.245
   port http
   port http csw-policy "p1"
   port http csw
   bind http rs18 http 
  !

All requests with the prefix /support will result in a redirect to "support.whatever.com" using destination page "/".

-> 11 lines - couting the ! line: 15

Super Contributor
Posts: 316
Registered: ‎05-01-2009

Re: How do I redirect a request to a different URL/domain using CSW?

I have just written the following:

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.