Page 1 of 1

Multiple SSL certificates on CentOS/Apache

Posted: 2015/11/04 02:44:52
by maseer
Hi Team,

I am using CentOS 6.5 on Apache.
When configured to SSL to have multiple Virtual host with the SSL certificate throws following error when restarting Apache.

root@tst ~]# sudo service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Wed Nov 04 12:23:46 2015] [warn] _default_ VirtualHost overlap on port 443, the first has precedence.

SSL Config as below and we have only 1 IP for this server and separate set of certificates each host.

<VirtualHost *:443>
ServerName xxx.xxxx.xxx.xx
.......
</VirtualHost>

<VirtualHost *:443>
ServerName yyy.yyyy.yyy.yy
.......
</VirtualHost>

Please can you help me to find the issue.

Thanks,
Maz

Re: Multiple SSL certificates on CentOS/Apache

Posted: 2015/11/04 18:01:49
by aks
I guessing .. don't use the port as the differentiator (is that a word?) for the virtual hosts, use something else (like the URL).

Re: Multiple SSL certificates on CentOS/Apache

Posted: 2015/11/04 18:44:32
by TrevorH
If you are doing SSL then either you need a separate IP address for each different site that requires a different certificate or you need to use SNI.