There are three situations in opening a file in the Linux file system
In some cases, developers may set wrong permissions when deploying lua scripts. At this time, content_by_lua_file will directly return 404, which is inappropriate. It stands to reason that it should return 403 or other 5xx series exception codes. , which makes it easier for us to use other anomaly detection systems to identify anomalies.
I also created a GitHub issue to trace this problem https://github.com/openresty/lua-nginx-module/issues/1992