Undertow proxy-address-forwarding does not work

Solution Verified - Updated -

Issue

When I have proxy-address-forwarding configured, it does not work as expected and request.getServerPort, request.getServerName, etc do not return values for the proxy when called in web application.

  <http-listener name="default" socket-binding="http" redirect-socket="https" proxy-address-forwarding="true"/>

Environment

Red Hat JBoss Enterprise Application Platform 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.