0

I would like to host multiple domains at same VPS and need to configure SSL certificate for those. The server is Ubuntu 12.04. All domains have their own certificates.

I need help regarding multiple domain configuration in default-ssl.

1 Answers1

2

You should Create multiple virtual-hosts in Apache and assign SSL Certificate seperatly for each one of them.

Example:

NameVirtualHost *:443

<VirtualHost *:443>
  ServerName some.domain.com
  # SSL options, other options, and stuff defined here.
</VirtualHost>

<VirtualHost *:443>
  ServerName some.domain2.com
  # SSL options, other options, and stuff defined here.
</VirtualHost>

For SSL Options refer to: http://httpd.apache.org/docs/current/ssl/ssl_howto.html

Make sure to add NameVirtualHost to your configuration.

JimmySys
  • 46
  • 2
  • I have already used this approach. But only the first one appeared in both ursl. see here: https://zbux.com/ and https://writerspublisher.com/ – Muhammad Muazzam Nov 09 '14 at 09:47
  • @MuhammadMuazzam Keep in mind that using multiple certificates on a single IP address requires SNI support on both client and server. Using `openssl s_client` I can see that your server does pay attention to SNI, but it does not pick different certificates based on it. This link says it is possible on Ubuntu 12.04: https://www.clickssl.com/blog/abolish-multiple-ips-trouble-in-ssl-installation-with-sni – kasperd Nov 09 '14 at 10:10
  • I have used same approach already, but it only read default-ssl file. And in that file it read first virtual host, not second and so on. – Muhammad Muazzam Nov 09 '14 at 11:31