I have a CentOS 6 VPS with 5 sites and Let's Encrypt installed and working on all sites. When I access https://vps-ip, it always points to the first site configured in vhosts-ssl-letsencrypt.conf (I've changed the config and put another site at the top of the config to test it). I've tried to add:
<VirtualHost ip:443> ServerName ip Redirect 403 / ErrorDocument 403 "No" DocumentRoot /usr/local/apache/htdocs UseCanonicalName Off UserDir disabled </VirtualHost>
but sites are not accessible via ssl
or <VirtualHost *:443>...
gives me this error: [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
http://vps-ip is pointing to the right vps welcome page. Any ideas?