Reputation:
Is it possbile to reverse proxy to internal server via HTTPS and serve the certificate from the backend server instead of the certificate on the proxy?
Upvotes: 1
Views: 3516
Reputation: 21
konqi> That's pretty much the reverse proxy configuration I've been using for years, with a rewrite rule instead of proxy directives which did not work well here.
RewriteEngine On
# is the virtualhost in the allowed server list ?
RewriteCond %{SERVERNAME} ^(server1|server2|server3|server4)\.domain\.com$
# then redirect to the real server (which the virtualhost name resolves to on the proxy)
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [P]
# else block it all
RewriteRule ^.*$ - [F]
Plain and simple.
Upvotes: 2
Reputation: 4826
Found this configuration as followed:
Hot chick! Couldn't believe that this works, but it seems to! Not found any specification to that behaviour, but try yourself.
With kind regards, ~Marcel
P.S: NOT regarding any security doubts here! Please keep in mind that these proxy calls to the "backend" are unsecured and therefore (as like mentioned by Rob) potentially dangerous!
Upvotes: 0
Reputation: 44952
I believe that this cannot be done as it would allow for man in the middle attacks
Upvotes: 1