SteveLTN / https-portal

A fully automated HTTPS server powered by Nginx, Let's Encrypt and Docker.
MIT License
4.46k stars 295 forks source link

Direct access over the ip address to the server without a dns name #292

Closed tinohager closed 2 years ago

tinohager commented 2 years ago

When I access the server directly with https via the ip address I get an invalid default certificate, and not the 444 response. I found this solution, maybe we can integrate it in the standard? ssl_reject_handshake on;

https://serverfault.com/questions/373929/nginx-how-do-i-reject-request-to-unlisted-ssl-virtual-server

default-server.example.com

SteveLTN commented 2 years ago

Hi, 1.20.0 is released and addressed the issue. Please try out!

tinohager commented 2 years ago

Okay now i have the same response as described https://www.codedodle.com/disable-direct-ip-access-nginx.html here SSL_ERROR_UNRECOGNIZED_NAME_ALERT

Thanks