Hi,
I am getting 400 bad request request header or cookie too large nginx with my Rails app, restarting browser fixes the issue. I am only storing a string id in my cookie so it should be tiny. Where can I find the nginx error logs? I looked at nano /opt/nginx/logs/error.log, but it doesn’t have anything related…
Any help
Thx Leo
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Try increasing the large_client_header_buffers directive in nginx, <br> <br>server { <br>… <br>large_client_header_buffers 4 16k; <br>… <br>}
This comment has been deleted
This comment has been deleted
thanks buddy its fix my issue <br> <br>Regards, <br>Owais
Yes, it dose. <br> <br>But it will come back again. I cannot find anything wrong with my code. So what is the best way to debug this? like I said I cannot find anything in /opt/nginx/logs/error.log <br> <br>thx <br>Leo
Try clearing your browser’s cookies, does that fix it?
Click below to sign up and get $100 of credit to try our products over 60 days!
How do I get ready of the 400 bad request