Domain Using the First SSL on the IP Instead of Its Own
I want to redirect mail.example.net to example.com, so I've set up a redirect in the .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mail.example.net$ [NC]
RewriteRule ^ https://example.com/ [R=301,L]
When I try to access the address mail.example.net the redirect is not working and it shows me the error: "ERR_CERT_COMMON_NAME_INVALID" and rightfully so because I see that the site is not using the installed self-signed Cloudflare SSL but the first SSL on the server's IP, which doesn't cover mail.example.net.
So, the redirect is not working and why is it not showing the installed SSL? I checked in SSL Storage Manager and everything is correct, the site uses the Cloudflare self-signed SSL.
-
I have custom vhosts for those DNS records and they are not included in the cert. Let me do a few things first and I will create a ticket and get back to you.
0
Please sign in to leave a comment.
Comments
31 comments