- 刷新404问题
- 只需要在nginx配置文件的location中加上这段配置:
try_files $uri $uri/ /index.html;
- 只需要在nginx配置文件的location中加上这段配置:
- 配置代理转发
location /dev/ {
# 设置代理目标
proxy_pass http://xxx/;
}
try_files $uri $uri/ /index.html;
location /dev/ {
# 设置代理目标
proxy_pass http://xxx/;
}