Forwarded

Host names and ports of reverse proxies (load balancers, CDNs) may differ from the origin server handling the request, and for the use of the route scope system you will probably need the values exactly as the user requested.

The reverse proxy will probably provide ways to get around this, some examples are the X-Forwarded-Proto (XFP) and X-Forwarded-Host (XFH) headers.

Forwarded protocol and port

{placeholder}

X-Forwarded-Proto: foo.bar.baz X-Forwarded-Port: 443

Example:

'fowarded_proto' => $_SERVER['HTTP_X_FORWARDED_PROTO'], 'fowarded_port' => $_SERVER['HTTP_X_FORWARDED_PORT'],

See also

Go to homepage
Star us on Github