nginx怎么正确部署前端项目


当前第2页 返回上一页

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

1

2

3

4

5

6

7

8

9

10

server{

    listen 80;

    server_name  xxx.com;

 

    location /{

        root /home/web/vueProjects/wxopapp/dist/;

        index index.htm index.html;

        expires      30d;

    }

}

1

2

nginx -t

nginx -s reload

相关推荐:nginx教程

以上就是nginx怎么正确部署前端项目的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

比较讲解http中499状态码和nginx下499错误

nginx有哪些常见的应用场景

nginx是什么服务器

nginx设置仅允许个别ip访问的方法

nginx的特点有哪些

nginx能做什么

安装完nginx后如何启动nginx

nginx实现负载均衡有哪几个模式

nginx启动后可以用哪些命令控制?

如何运行和控制nginx

更多相关阅读请进入《nginx》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...