nginx怎么正確部署前端項目

nginx怎么正確部署前端項目

目的:

nginx部署打包成為dist的前端項目

(學習視頻分享:php視頻教程

相關知識:

立即學習前端免費學習筆記(深入)”;

docker?安裝與使用 docker?pull?nginx docker?run?--restart=on-failure:20?-itd?--name?nginx?-p?80:80?nginx:latest

SEO

nginx如何部署dist? nginx如何部署vue? nginx如何部署前端項目?

安裝nginx后,配置

該文件放在/etc/nginx/conf.d/xxx.conf

server{ ????listen?80; ????server_name??xxx.com;  ????location?/{ ????????root?/home/web/vueProjects/wxopapp/dist/; ????????index?index.htm?index.html; ????????expires??????30d; ????} }
nginx?-t nginx?-s?reload

相關推薦:php視頻教程

以上就是

? 版權聲明
THE END
喜歡就支持一下吧
點贊8 分享