Hello!
I have problem after I change Debian 7 to Debian 8. After changing all my sites gets “Ssl_error_bad_cert_domain” and server error with www. Without www work fine. Please, help me, what should I do?
My domain is: vernu-nalog.ru www.vernu-nalog.ru
My web server is (include version): apache 2.4.29
The operating system my web server runs on is (include version): Debian GNU/Linux 8.9 (jessie)
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
And that’s my conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName vernu-nalog.ru
ServerAlias www.vernu-nalog.ru vernu-nalog.ru
DocumentRoot /home/fans/domains/vernu-nalog.ru/html
ErrorLog "/home/fans/domains/vernu-nalog.ru/logs/error_log"
<Directory />
AllowOverride All
Options All -Indexes
Require all granted
</Directory>
SSLCertificateFile /etc/letsencrypt/live/vernu-nalog.ru/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/vernu-nalog.ru/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.vernu-nalog.ru
RewriteRule ^ https://vernu-nalog.ru%{REQUEST_URI} [END,QSA,R=301]
</VirtualHost>
</IfModule>