Categories
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_pass http://127.0.0.1:8000/anomaly-detection/static/;
  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
https://host-address/anomaly-detection/static/js/10.c8b175cd.chunk.js

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 *