Forum

Multiple reverse proxies in one virtualhost for different ports.

akash Talole
11 January 2019, 11:38
I want to achive following
http ://example.com >> http://172.14.2.7:80/
https ://example.com >> https://172.14.2.7:443/
https ://example.com:8443 >> https://172.14.2.7:8443/

How to configure reverseproxy option to properly redirect traffic based on ports?
VirtualHost {
RequiredBinding = Bind_443, Bind_80, Bind_8443
Hostname = example.com

ReverseProxy ^/.* http ://172.14.2.7:80/ 95 keep-alive
ReverseProxy ^/.* https ://172.14.2.7:443/ 95 keep-alive
ReverseProxy ^/.* https ://172.14.2.7:8443/ 95 keep-alive
}
Akash Talole
11 January 2019, 12:36
VirtualHost {
RequiredBinding = Bind_443, Bind_80, Bind_8443
Hostname = example.com

ReverseProxy ^/.* http://172.14.2.7:80/ 95 keep-alive
ReverseProxy ^/.* https://172.14.2.7:443/ 95 keep-alive
ReverseProxy ^/.* https://172.14.2.7:8443/ 95 keep-alive
}
Hugo Leisink
11 January 2019, 16:18
That is not supported. The reverse proxy is intended to be used with a backend webserver, for example SSL-offloading. What you want can't be done with the current reverse proxy.
Allowed BBcodes:
[quote]
[code]
[config]
[url]
[color]
[size]
[img]
[b]
[i]
[u]
[s]
[list]
[ul]
[ol]
[*]