« Linux : Haproxy » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
=== Exemple de configuration HAProxy en reverse http === | |||
<syntaxhighlight lang="bash"> | |||
frontend yakakliker | |||
bind *:80 | |||
mode http | |||
option httplog | |||
acl yaka_acl hdr(host) www.yakakliker.org | |||
use_backend backend1 if yaka_acl | |||
backend backend1 | |||
mode http | |||
balance source | |||
option httpchk | |||
option forwardfor except 127.0.0.1 | |||
http-request add-header X-Forwarded-Proto https if { ssl_fc } | |||
server web-server1 192.168.XXX.XXX:80 maxconn 32 | |||
</syntaxhighlight> | |||
Version du 17 mai 2024 à 15:03
Exemple de configuration HAProxy en reverse http
frontend yakakliker
bind *:80
mode http
option httplog
acl yaka_acl hdr(host) www.yakakliker.org
use_backend backend1 if yaka_acl
backend backend1
mode http
balance source
option httpchk
option forwardfor except 127.0.0.1
http-request add-header X-Forwarded-Proto https if { ssl_fc }
server web-server1 192.168.XXX.XXX:80 maxconn 32
Lien
https://wiki.maxcorp.org/configurer-un-reverse-proxy-avec-haproxy-http-https/
https://haproxy.debian.net/#distribution=Ubuntu&release=jammy&version=2.8
https://www.aukfood.fr/mise-en-place-haproxy-2-8-sur-une-debian-12/
https://upcloud.com/resources/tutorials/haproxy-load-balancer-debian