Layer7 API Gateway" Changing the Server Header in responses
search cancel

Layer7 API Gateway" Changing the Server Header in responses


Article ID: 42850


Updated On:


CA API Gateway


In some cases, it may be desirable to change the server header value seen when viewing HTTP response headers sent from the API Gateway. This is sometimes changed for security reasons.


Applies to all versions of the API Gateway.


This can be changed in several ways.

  1. Make the change at the listen port level  
    1. Open Policy Manager using an administrator account.
    2. Select Manage Listen Ports from the Task menu of the Policy Manager.
    3. Select the Advanced Tab.
    4. Under the Advanced Properties click Add.
    5. For Property Name add server and then enter the desired Value. In most cases, users will choose to nullify it by removing all text from the Value field.

      • The Property Name of server must be in lower-case as it is case-sensitive. Not following the case-sensitivity means it may be overwritten.
    6. Click OK then OK again to enable this setting.
    7. Once the above is complete, the change will take effect within a few seconds for all new connections to the Gateway on this port. It may cause a momentary pause to traffic while this is occurring


       2. Make the change for all listen ports ( This only works for GW 9.4 and above ) 

    1. SSH to the gateway and edit /opt/SecureSpan/Gateway/node/default/etc/conf/
    2. Add the line:  com.l7tech.server.response.header.server=NEWVALUE where NEWVALUE is the value you wish to have returned
    3. Note: the value can be anything except a blank value

Additional Information

Tested on Gateway 10.1 CR3

The server value shows as a change in the browser debugger, however, you may still see it in the Policy Manager service debugger as “Layer7-API-Gateway”