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:

http://api.abc.com:123

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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -