You didn’t access it directly using the IP address? The certificate proves the domain name, and you must use the domain name bound to the certificate to access.
The certificate is issued for the domain name. Of course, this will happen if you use IP to access it, because the certificate corresponding to the IP cannot be found!
You didn’t access it directly using the IP address? The certificate proves the domain name, and you must use the domain name bound to the certificate to access.
nginx starts without error?
Have you read nginx -t? Are there any logs left?
The certificate is issued for the domain name. Of course, this will happen if you use IP to access it, because the certificate corresponding to the IP cannot be found!
The path of the digital certificate should use an absolute path, for example:
Also server_name cannot be 127.0.0.1, please use a domain name, for example:
Here is my SSL configuration file: