Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to add the X-Forwarded-Proto header.

 

Information

 

Summary:

How to add the X-Forwarded-Proto header to the client request.

Environment:

Product: LoadMaster

Version: Any

Platform: Any

Application: Any 

Question/Problem Description:

 The application that is being load balanced requires the X-Forwarded-Proto header.

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause:  
Resolution:

There are two ways to go about this depending on what firmware version you are currently running.

The easiest way would be to add this header within the virtual service itself, no rule is needed.

  • Select the required virtual service you want to add this header too.
  • Within the virtual service expand the Advanced Properties tab.
  • Go to the "Add Headers to Request" section, then type in the "X-Forwarded-Proto" and "HTTPS" in the fields and click set header

The second option would be to create a content rule to add this header to the request before it is sent to the real server.

Navigate to Rules & Checking and add a new rule.

In the Create Rule screen, make the following selections:

  • Select Add Header from the Rule Type drop-down list.
  • Enter X_Forwarded_Proto in the Header Field to be Added text field.
  • Enter https as the Value of Header Field to be Added.
  • Click the Create Rule button.

This will then need to be assigned within the virtual service.

Expand the Advanced Properties tab and apply this to the header modification rules.

This will need to be applied as a Response Rule since the header must be added before it reaches the real server. 

Workaround:  
Notes:  

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

Comments