随笔分类 -  nginx/haproxy

nginx/haproxy
摘要:nginx 状态码说明 当使用 Nginx 将 HTTP 跳转到 HTTPS 时,HTTP 请求可能包含不同类型的方法(method),如 GET、POST、PUT、DELETE 等。根据 HTTP 协议的规定,重定向(Redirection)的方式可能会影响请求方法的保持或者修改。 以下是常见的 阅读全文
posted @ 2023-03-09 15:43 清风木 阅读(2486) 评论(0) 推荐(0) 编辑
摘要:发现报错: 502--upstream sent too big header while reading response header from upstream 解决 修改nginx.conf: proxy_buffer_size 16k; #调大 proxy_buffers 8 32k; # 阅读全文
posted @ 2020-08-27 18:48 清风木 阅读(822) 评论(0) 推荐(0) 编辑
摘要:nginx平滑升级 目标: 旧版本 升级 新版本nginx wget nginx.tgz && tar zxvf nginx.tgz cd nginx ./configure prefix=/usr/local/nginx user=www group=www with http_stub_stat 阅读全文
posted @ 2019-09-10 19:52 清风木 阅读(988) 评论(0) 推荐(0) 编辑
摘要:nginx 1.14.0 描述: nginx自带的upstream配置,如果后端挂了,接口会慢,原因不讲述,故接入第三方的自动检测与自动踢除模式 nginx_upstream_check_module模块: 下载地址https://github.com/yaoweibin/nginx_upstrea 阅读全文
posted @ 2019-09-09 10:56 清风木 阅读(1573) 评论(0) 推荐(0) 编辑
摘要:global_defs { router_id k8s_master} vrrp_script chk_http_port {script "/etc/keepalived/check_haproxy.sh"interval 2} vrrp_instance k8s_master { state M 阅读全文
posted @ 2018-07-04 17:25 清风木 阅读(406) 评论(0) 推荐(0) 编辑
摘要:--user=nginx --group=nginx --prefix=/opt/app/nginx --with-http_v2_module --with-http_ssl_module --with-http_sub_module --with-http_stub_status_module 阅读全文
posted @ 2018-07-04 17:23 清风木 阅读(146) 评论(0) 推荐(0) 编辑
摘要:#wget http://www.haproxy.org/download/1.7/src/haproxy-1.7.9.tar.gz #tar zxvf haproxy-1.7.9.tar.gz#make TARGET=linux26 PREFIX=/usr/local/haproxy #make 阅读全文
posted @ 2018-07-04 17:09 清风木 阅读(436) 评论(0) 推荐(0) 编辑

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