在nginx.conf中配置修改,添加这一行代码就可以了。
location / { //前面代码都正常 if (!-e $request_filename){ proxy_pass http://127.0.0.1 } }