If with Apache you’re getting this error when deploying multiple name-based domains using port 443, or 80 for that matter
VirtualHost overlap on port 443, the first has precedence
Just edit your ports.conf (or httpd.conf)
sudo nano ports.conf
And add these,
NameVirtualHost *:80
NameVirtualHost *:443
Save and test your config again
sudo apache2ctl configtest
This should now clear ok.