随笔分类 -  nginx

摘要:有时候会根据需要,区分不同的vue项目,这样要加一个后缀,不加后缀,访问是http://localhost/,加一个后缀,app,访问路径就是http://localhost/app 一、vue工程配置: 1.vue.config.js publicPath 配置为 /app/ 2.route配置b 阅读全文
posted @ 2024-08-14 11:06 猝死的路上 阅读(169) 评论(0) 推荐(0) 编辑
摘要:server { listen 80; #填写证书绑定的域名 server_name <yourdomain>; #将所有HTTP请求通过rewrite指令重定向到HTTPS。 rewrite ^(.*)$ https://$host$1; location / { index index.html 阅读全文
posted @ 2023-11-01 18:07 猝死的路上 阅读(82) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示