global
maxconn 100000
chroot /usr/local/haproxy
stats socket /var/lib/haproxy/haproxy.sock mode 600 level admin
uid 99
gid 99
daemon
nbproc 4
cpu-map 1 0
cpu-map 2 1
cpu-map 3 2
cpu-map 4 3
pidfile /var/lib/haproxy/haproxy.pid
log 127.0.0.1 local3
defaults
option http-keep-alive
option forwardfor
maxconn 100000
mode http
timeout connect 300000ms
timeout client 300000ms
timeout server 300000ms
log-format %ci:%cp\ %si:%sp\ %B\ %U\ %ST\ %r\ %b\ %f\ %bi\ %hrl\ %hsl\
listen weblb
bind *:80
bind *:443 ssl crt /etc/haproxy/ssl/cicic.pem
redirect scheme https if !{ ssl_fc }
http-request set-header Host #这里写域名#
mode http
log global
server web x.x.x.x:443 check ssl verify none
相关文章
- 12-30PySocks 代理服务和urllib urlopen 请求https
- 12-30varnish2 代理多台后端服务器
- 12-30varnish02 代理多台后端服务器
- 12-30haproxy反向代理环境部署(http和https代理)
- 12-30前后端分离、APP服务接口代理调试方法
- 12-30Nginx反向代理多域名的HTTP和HTTPS服务
- 12-30Nginx搭建正向代理服务器支持https
- 12-30haproxy 2.2代理后端https服务
- 12-30Caddy 一个强大、Api Server, 一键Https, 反向代理服务器
- 12-30利用squid搭建http/https代理服务器