[ssl:warn] [pid 4122] AH01707: ip-xxx-xx-x-x.abcd.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
Hello,
I can't figure out what generates this warning and how lớn fix it.
Website is running on AWS servers.
asked Mar 2, 2022 at 7:21
Mandy SMandy S
711 gold badge1 silver badge2 bronze badges
This might be due lớn the .htaccess tệp tin.
It's important lớn note that comments should not be placed in the middle of a line in the htaccess tệp tin, they should always be start from the new line.
answered Oct 19, 2023 at 6:17
In my case, it was a difference between www or not. In /etc/apache2/sites-enabled/
, try making www the main URL:
ServerName www.example.com
ServerAlias example.com
Redirect permanent / https://www.example.com/
RewriteEngine on
RewriteCond %{SERVER_NAME} =example.com [OR]
RewriteCond %{SERVER_NAME} =www.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
DocumentRoot /
ServerName www.example.com
ServerAlias example.com
SSLEngine on
Include //ssl.conf
SSLCertificateFile //fullchain.pem
SSLCertificateKeyFile //privkey.pem