Manipulate Server Header in HTTPS Response


This document provides instructions on how to manipulate server header value in HTTPS response for requests to your load balancer. For more information on load balancers, see Proxy & Load Balancer.

The HTTP load balancer responds with the server response header value volt-adc by default. You can set a responsae header using the header processing options of load balancer and manipulate it with the server header response setting. For information on how to set header processing, see HTTP Header Processing.

Using the instructions provided in this guide, you can do the following:

  • Set default response header value
  • Set a specific header value
  • Append a specific header value
  • Set to pass existing header value


The following prerequisites apply:


Perform the following steps in VoltConsole to set header processing:

Step 1: Log into VoltConsole, navigate to your load balancer, and edit it.
  • Change to your application namespace and navigate to Manage -> Load Balancers.
  • Select HTTP Load Balancers from the options and click ... -> Edit for the load balancer for your application.
Step 2: Set server response header.
  • Enable the Show Advanced Fields option.
  • Click on the Server Header value to be used in response field and configure as per the following guidelines:

    • Select Default Value for Server header to set the header value as volt-adc. This is also set by default.
    • Select Server Name to set a specific value. Enter the value in the Server Name field.
    • Select Append Server Name if absent to set a specific value if server header is not already present. In case if it is already present, it is just passed. Set the value in the Append Server Name if absent field.
    • Select Pass existing Server header to pass the server header that is already present. If it is absent, nothing gets appended.

server resp
Figure: Server Response Header Setting

Note: You can set a response header in the Advanced Configuration section using the header processing options. Using server response header together with advanced configuration, you can modify or hide the server response headers for security purpose.

Step 3: Save changes to the load balancer configuration.

Click Save and Exit to complete creating the load balancer.

Note: For more information on HTTP load balancer creation, see the HTTP Load Balancer guide.

Step 4: Verify the server header in the HTTP response.
  • Send a HTTP request using domain you set in the HTTP load balancer. You can use tools like CURL to request.
  • Verify that the HTTP response includes the server header value as per your load balancer configuration.


API References