mighttpd2
mighttpd2 copied to clipboard
multi https subdomain based reverse proxy
Hi is it possible to use Mighttpd2's reverse proxy functionality to reverse proxy more than one subdomain (SNI)? here is what I intend to do, all on one server and with one mighttpd2:
https://site1.example.com should server content from webapp1 https://site2.example.com should server content from webapp2 https://site3.example.com should server content from webapp3
Would the following routing config file be correct?
[site1.example.com]
/ >> 127.0.0.1:8001/
[site2.example.com]
/ >> 127.0.0.1:8002/
[site3.example.com]
/ >> 127.0.0.1:8003/
But how can I configure separate Tls_Cert_File/Tls_Key_File values for the different domains?
thanks, Alex.
👍 I need this functionality too, for Let's Encrypt currently providing certificates in per-subdomain-manner.