![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
0803【Nginx】
技术学习
努力的阳光蓝孩
学习一时爽,一直学习一直爽
展开
-
【Nginx】05 启动Nginx 配置反向代理 域名 到 网关 到 服务
1、官网地址https://www.nginx.com/blog/http://nginx.org/en/docs/2、Using nginx as HTTP load balancerhttp { upstream myapp1 { server srv1.example.com; server srv2.example.com; server srv3.example.com; } server { li原创 2020-09-09 09:19:55 · 718 阅读 · 0 评论 -
【Nginx】04 启动Nginx 配置反向代理 域名到 服务
1、启动# docker ps -a# docker start nginx# 更新为自动启动# docker update nginx --restart=always2、访问http://haoxiansheng.com/3、配置转发让ngxin 进行反向代理,所有haoxiansheng.com下的请求都转到商品服务# vi nginx.conf# 全局配置user nginx; # 用户组worker_processes 1; # 允许生产worker_pro原创 2020-09-09 09:15:45 · 135 阅读 · 0 评论 -
【Nginx】03 Mac 配置域名与主机映射
1、打开Finder 在菜单中选择【前往】【前往文件夹】2、使用快捷键Command+Shift+G3、赋值一份到桌面修改后保存 编写域名指向ip配置,并拖动替换原文件即可### Host Database## localhost is used to configure the loopback interface# when the system is booting. Do not change this entry.#### 添加域名与主机映射192.168.56.20原创 2020-09-09 07:45:08 · 390 阅读 · 0 评论