Fix Nginx 400 Bad Request: The SSL certificate error

Posted on April 30, 2019 at 11:34 pm

I have a website where I am using Nginx + SSL by Lets Encrypt and some users reported continuous “400 Bad Request” errors. I digged the event and looks like this trick fixed the issue:

Add this to your Nginx vhost config file inside server {} section:

error_page 497 https://$host$request_uri;

Reference:

https://stackoverflow.com/a/55029648
https://stackoverflow.com/a/14241127

Receive updates via email

Other Posts

Updated Posts