访问http://localhost/api/dict。
ngnix配置如下的话,后台系统报404
location ^~ /api/ {
proxy_pass http://127.0.0.1:8085/;
}
下面这种方式就能正常访问
location / {
proxy_pass http://127.0.0.1:8085/;
}
试试这么写
location ~* ^/api/ {
proxy_pass http://127.0.0.1:8085/;
}