Hello! To start with this I only have one nginx server and one domain using Let’s Encrypt.
I recently discovered that my website has been labelled SSL_ERROR_BAD_CERT_DOMAIN by quite a few web browsers including Firefox Quantum and IE except Chrome (both desktop and mobile on different Internet connections). Upon some Google-fus I discovered that return directive in nginx server config apparently cause this (Ssl_error_bad_cert_domain).
The problem is, the return is actually used for forced HTTPS redirection within the same nginx server config. I tried Googling around for alternatives but there doesn’t seem to have any, so I decided to ask here for help.
Is there any ways to prevent the error popping up on most browsers while retaining force-HTTPS redirection within the server?