Enabling forwarding of X-Forwarded HTTP request headers for elastic load balancing

If clients access your Discovery Service through HTTPS and if you use Amazon's Elastic Load Balancing, edit the Web application definition file, web.xml, of the Discovery Service, to enable the forwarding of the X-Forwarded-For, X-Forwarded-Proto and X-Forwarded-Port HTTP headers.

Procedure

  1. Navigate to the WEB-INF\ subfolder of the Discovery Service Web application root folder.
  2. Remove the comment delimiters around the filter and filter-mapping sections that each have the following child element:
    <filter-name>ServiceRemoteIpFilter</filter-name>
  3. Save and close web.xml.