Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

We have two domains on one server. Is there an example config file showing how to have multiple ssl certificates, one for each virtual host?

0
Posted

We have two domains on one server. Is there an example config file showing how to have multiple ssl certificates, one for each virtual host?

0

This is not possible if you are using Resin’s virtual hosting capability to serve to multiple domain names using a single IP address. The SSL connection (and certificate) are handled before the HTTP request is sent. Unless the domain name is mapped to a unique ip address, the server cannot know which domain name the user is using until after SSL is set up. There is no way for Resin to determine which domain name the user has specified in the request until after the SSL decryption has occurred. It is possible if you have separate IP addresses for the hosts. You need unique http port listeners that only bind on that ip address. Each of these http ports can have it’s own ssl configurations.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123