mighttpd2 icon indicating copy to clipboard operation
mighttpd2 copied to clipboard

multi https subdomain based reverse proxy

Open agreif opened this issue 9 years ago • 1 comments

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.

agreif avatar Sep 09 '15 15:09 agreif

👍 I need this functionality too, for Let's Encrypt currently providing certificates in per-subdomain-manner.

konn avatar Apr 29 '16 16:04 konn