Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to perform a Location Header Rewrite





How to perform a Location Header Rewrite in order to prevent the server from redirecting the client


Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

Have a VIP that redirects https://site to https://newsite. Need to also add in rules that will change any request from https://site/Content to https://newsite/Content

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause: The server redirects content connecting through the LoadMaster in order to have the client connect where the server is configured to receive connections

Navigate to Rules & Checking > Content Rules > Add New.

Name the Rule (this can't include spaces).

Rule Type: Replace Header

Header Field: Location

Match String = /LocationSentByServer/
Value of Header Field to be replaced = YourDesiredLocation

Apply this rule on the Virtual Service under Advanced Properties > HTTP Header Modifications > Response Rules. If this option doesn't appear, SSL must be enabled.


Was this article helpful?
0 out of 0 found this helpful