A Case Study of Nginx 499 Errors on POST Requests Caused by Redis Whitelist

A few days ago I added a new server to the website, using Alibaba Cloud for Redis, the server itself, MySQL, and more.

After bringing it online and enabling load balancing, the Nginx logs showed a large number of 499 status errors, all of which were POST requests:

The new server environment was identical to the original server, which was working fine. Following online tutorials, I added the following to the configuration file, but it still didn’t fix the issue:

 

proxy_ignore_client_abort on ;

 

      Since all the errors were POST requests, I suspected a problem during the data submission process. After further investigation, it turned out I had forgotten to add the Alibaba Cloud Redis whitelist, which caused premature data anomalies in the database. The issue was resolved after adding the wh

Leave a Comment

Your email address will not be published.