Stop redirecting of domain which does not have ssl


My all request redirect to https. I want to only redirect domain which has ssl certificate and other should work on normal domain. but now other domain is also redirecting to https and giving error ssl_domain_invalid: Your request contacted a host which presented a certificate with a Common Name that did not match the domain requested.


Are you able to login via SSH?


yes . it is aws ec2
i have installed let’s ecncrypt with select all request redirect to https. Now i want to stop auto redirection


You may find the config with the redirection with:
grep -Eri 'servername|serveralias|rewrite' /etc/apache/

Looking for the config file that contains “” and that also has a rewrite statement.


i am trying to setup wildcard subdomain allow


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.