Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to modify a request based on the sub-directory in the URL

 

Information

 

Summary:

How to capture what the sub-directory value is and replace the sub-domain (www) with that value.

Environment:

Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

Need to change the sub-domain from www to what the sub-directory value is, and also keep the sub-directory in the URL, so, clients are routed to the appropriate web app.

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause:  
Resolution: To achieve the modification of changing a request from https://www.domain.com/directory to https://directory.domain.com/directory the following must be done:
  • Create a content matching rule for each directory with the following match string: /^www.*\/directory/
  • Create a SubVS for that directory, apply the content rule to that SubVS, and set a 302 redirect to https://directory.domain.com/directory without adding real servers to that SubVS.
  • Ensure that the newly created content rules are placed above any more general content rules within Advanced Properites > Rule Precedence.
This will have the new request appear in the client browser.
Workaround:  
Notes:  

Comments