Avoiding Pitfalls in Building Your Own CDN

Recently, I found that the server logs had more 502 status codes than 200. I think it may be because I have blocked a large number of spiders and non-browser accesses.

Then today, during the testing phase of adding a new node, I found that the CDN service was in an abnormal state. After investigation, I discovered that the firewall had blocked the server IP and the non-browser interception of the Baota firewall.

Since my IP has always been in the firewall whitelist, I didn't notice it.

  1. Add the server IP to the firewall whitelist.

  2. Disable the non-browser interception of the Baota firewall.

  3. Check the ping latency between the node server and the origin server.

Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.