Ticker

6/recent/ticker-posts

Ad Code

Responsive Advertisement

nginx try_files出现错误?

location / {
            root   /webapps/build/;
            index  index.html index.htm;
            try_files $uri /index.html;
        }

nginx配置完了

发现刷新https://XXX.com/machine/general,资源请求的路径都不对了

应该是:

https://XXX.com/static/js/13.7e356b15.chunk.js

实际是:

https://XXX.com/machine/static/js/13.7e356b15.chunk.js

如何解决?
谢谢

Enregistrer un commentaire

0 Commentaires