发布问题

已经放到服务器上的了,问题如上
@zongzi8899 你已经解决了吗?我不部署到了nginx服务器上,问题和你一模一样 你部署的是tomcat服务器吧?
nginx配置示例:
server
{
listen 666;
server_name 47.92.30.98;
root /home/www/antd-admin/dist;
location /api {
proxy_pass http://localhost:8000/api;
}
location / {
index index.html;
try_files $uri $uri/ /index.html;
}
}
演示地址:http://47.92.30.98:666
tomcat的也可以? 在2017年05月8日 19:09,zuiidea[email protected] 写道:
nginx配置示例:
server { listen 666; server_name 47.92.30.98; root /home/www/antd-admin/dist;
location /api {
proxy_pass http://localhost:8000/api;
}
location / {
index index.html;
try_files $uri $uri/ /index.html;
}
}
演示地址:http://47.92.30.98:666
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@zongzi8899 我没试过,道理都是一样,都是把所有除了资源文件的路由指向index.html
好滴。THANKS
在2017年05月8日 19:17,zuiidea[email protected] 写道:
@zongzi8899 我没试过,道理都是一样,都是把所有除了资源文件的路由指向index.html
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@zongzi8899 你好 请问你是如何部署到tomcat 下的
@zongzi8899 我也是部署到tomcat上面 改成了hashHistory 跟你的效果一模一样 你解决了吗