When setting up the builder we now set the host to the value held in the X-Forwarded-Host [0] header if present. This allows to render appropriate URIs in reverse proxy scenarios. This is essentially an extension of ServletUriComponentsBuilder that will be fixed in there eventually. See SPR-10110 [1] for details. [0] http://tools.ietf.org/html/draft-ietf-appsawg-http-forwarded-10 [1] https://jira.springsource.org/browse/SPR-10110