apache - Retaining protocol and port number from reverse proxy request -
case:
user requests https://api.abc.com
this reverse proxied (apache 2.2) internal server server @ http://internal.abc.com:123
as per retain original request url on mod_proxy redirect , adding:
proxypreservehost on
to httpd.conf, internal.abc.com recognizes original request url as:
is there way me recover original url of https://api.abc.com ? is, retain original protocol (http) , port (80, or empty fine)
the way have got around adding header in virtual host file. requestheader set original-protocol-ssl true early
you need check header in code determine came from.
Comments
Post a Comment