Nginx Says: The plain HTTP request was sent to HTTPS port

So this error showed up right after I updated SSL certificate using certbot. Just take a look at the nginx config and put these lines to make it work again.

server {
  listen 80;
  listen 443 default ssl;

  # ssl on   - remember to comment this out

}

Leave a Reply