Will Stunnel work with multiple domains?

 

For example if abc.com and xyz.com both resolve to the same ip address where the web server is running locally on port 4080.

 

Going when to https://abc.com or https://xyz.com stunnel will encrypt the traffic and forward to the local 4080 port in the clear.

 

What if 10  or 20 domains needed to be served by the same web server?