现在配置: location / { root /root/html/product; } Probably another block had definition for the static files with a root set, in that case you should add the directives to that block. 正确配置:在service块内加入root配置 root /root/html/product; location / { root /ro…