cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
91
Views
0
Helpful
0
Comments
shbharat
Level 1
Level 1

This is for a situation when :

Customer has implemented a solution on a Cisco ACE LB, which receives requests from the internet for https://website1.com/path, and proxies these to https://website2.com/path

When the server replies with 301/302 redirects. These come back from the server with a location field of https://website2.com/path2 and this is sent to the client browser unchecked.

This cause issues for the customer. As the next request comes with https://website2.com/path2

Resolution :

using the below commands will fix the issue.

header rewrite response host header-value "(.*)https://website2\.com(.*)" replace "%1https://website1.com%2"

You should modify the location header if it is 301/302.

Something like below:

header rewrite response location header-value https://website2[.]com(.*)" replace "%1https://website1.com%2"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: