vue项目如何打包前后端不分离发布手把手教学apache、nginx (2)

server { listen 80; server_name localhost; root 你的dist所在的文件夹的路径; autoindex on; expires 1s; charset utf-8; location /ajax { proxy_pass 你接口反向代理的target; } location / { try_files $uri $uri/dist /dist/index.html; } }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpjwpz.html