In Apache: ProxyPreserveHost On RequestHeader set X-Forwarded-Proto "%{REQUEST_SCHEME}e" RequestHeader set X-Forwarded-Port "%{SERVER_PORT}e" RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}e"
In Catalyst: using_frontend_proxy => 1