Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

Perform a hostname redirect

 

Information

 

Summary:

Wanted a way to perform a FQDN redirect

Environment:

Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:
Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause: Needed to redirect traffic
Resolution:

This can be done in a few different ways. You can have the redirect visible to the user in the web browser, as well as invisible.

1. If you are looking to perform a visible redirect, you can do so by setting a "Not Available Redirection Handling" URL.
 
2. To do this, you would create a content matching rule, which matches on the incoming hostname. (/^server$/) and set this to fail on match.  These rules can only be applied on Services in which SSL Acceleration is enabled.  
 
Host match rule: https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Match%20on%20Host
 
3. You would then navigate to the relevant VS, and apply the rule under Advanced Properties > HTTP Selection Rules, and add the desired redirect to http://server.domain.com under "Not Available Redirection Handling"
 

Content_Match_Rule.PNGSelection_Rules.PNG


 
Workaround:
  • Another way to accomplish this would be an invisible redirect. This can be accomplished simply by creating a Replace Header content rule.
  • Rule type: Replace Header
    Header: Host
    Match String: /^www\.domain\.com$/
    Replace with: www.newdomain.com
Notes:

https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Change%20Host

https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Match%20on%20Host

 


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

Comments