Nginx 和 Haproxy 配置文件
目标:通过 Nginx 和 Haproxy 的常用配置实现服务的反向代理。
NGINX 配置
nginx 常用的配置文件一般处于 /etc/nginx/conf/nginx.conf。只有改这个文件之后执行 nginx -s reload 才可以动态加载,如果是 include 下面的,不会生效。
1 | #daemon off; |
Haproxy 配置
1 | global |
物来顺应,未来不迎,当时不杂,既过不恋
目标:通过 Nginx 和 Haproxy 的常用配置实现服务的反向代理。
nginx 常用的配置文件一般处于 /etc/nginx/conf/nginx.conf。只有改这个文件之后执行 nginx -s reload 才可以动态加载,如果是 include 下面的,不会生效。
1 | #daemon off; |
1 | global |
发布时间:2021-10-06 22:24:08
原始链接:http://chenzhijun.top/2021/10/06/nginx-and-haproxy-config/
许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。
微信赞助
支付宝赞助