Application Delivery (ADX)

Reply
New Contributor
Posts: 2
Registered: ‎07-30-2009

How do you rewrite outbound URL responses?

We have an application that sends out a connection URL to the client after the initial connection is made through the load balancer. This URL is based on the local machine name and IIS port the application is listening on.  How do I mask the URL that goes back to the client so that it uses the publicly exposed SSL secured name instead of the internal (not internet resolvable) server name?

Initial Client URL

https://mysite.domain.com/Authentication.svc

Response sent to Client:

http://localhost.domain.com:1234/Authentication.svc/?wsdl

This needs to point to https://mysite.domain.com/Authentication.svc/?wsdl

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

Re: How do you rewrite outbound URL responses?

It is an HTTP redirect the client is getting from the IIS? It is possible to rewrite 301/302 HTTP redirects doing:

csw-rule "r1" response-status-code 301 302

csw-rule "r2" response-header "Location" pattern "http://localhost.domain.com:1234/"


csw-policy "p1" type response-rewrite

  match "r1" response-header-rewrite

  match "r2" rewrite response-header-replace "https://mysite.domain.com/" offset 0 length 33


server virtual whatever a.b.c.d

port ssl ssl-terminate webssl

  port ssl response-rewrite-policy "p1"

  port ssl csw

  port ssl keep-alive


I hope this is useful. It is part of the documentation:

http://www.brocade.com/sites/dotcom/support/Product_Manuals/ServerIron_SLBGuide/l7sw.5.3.html




New Contributor
Posts: 2
Registered: ‎07-30-2009

Re: How do you rewrite outbound URL responses?

Spoke with the developer of the application.  The response sent to the client is not from IIS so it is not a redirect.  It is a link displayed in the body of the page that the client sees when they connect.

Authentication Service

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://localhost.domain.com:9003/Authentication.svc?wsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:...

So can that content be rewritten when it goes out to reflect the initial connecting URL?  https://mysite.domain.com/Authentication.svc?wsdl

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

Re: How do you rewrite outbound URL responses?

It is as well possible to rewrite the body of an HTTP response. Have a look at the following document to get some more details:

Join the Community

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

Download FREE NVMe eBook