Mastering Development System & Network

nginx proxy.conf location : static files 503 error

In proxy.conf I have this

location /anomaly-detection/static/ {
  access_by_lua_file lua/auth.lua;
  proxy_set_header Host $host;

to serve the static files.

However, I always get 503 Service Temporarily Unavailable when I try to access these files.

Example: location of one of the static files is

Is there something wrong with my location rule for static file?

Leave a Reply

Your email address will not be published. Required fields are marked *