Use dsconfig
Steps
-
Edit the HTTP or HTTPS connection handler object and set
use-forwarded-headerstotrueby runningdsconfig.Example:
dsconfig set-connection-handler-prop \ --handler-name "HTTPS Connection Handler" \ --set use-forwarded-headers:true -
To finalize your changes, use
dsconfigto restart the HTTP or HTTPS connection handler.Example:
dsconfig set-connection-handler-prop \ --handler-name "HTTPS Connection Handler" \ --set enabled:false dsconfig set-connection-handler-prop \ --handler-name "HTTPS Connection Handler" \ --set enabled:true -
To provide the
X-Forwarded-*information to your load balancer, consult your provider’s guide on configuring load balancer settings.