Haproxy : Configuration de plusieurs certificats

De www.yakakliker.org
Révision datée du 24 mai 2024 à 14:53 par Administrateur (discussion | contributions) (Page créée avec « === Exemple de configuration === <syntaxhighlight lang="bash"> frontend yakakliker bind *:80 bind *:443 ssl crt /etc/haproxy/cert/www.yakakliker.org.pem name www.yakakliker.org # filter cache mycache # http-request cache-use mycache # http-response cache-store mycache mode http option httplog acl yaka_acl hdr(host) www.yakakliker.org http-request redirect scheme https code 301 unless { ssl_fc } use_backend backend1 if yak... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Exemple de configuration

frontend yakakliker
    bind *:80
    bind *:443 ssl crt /etc/haproxy/cert/www.yakakliker.org.pem name www.yakakliker.org

#    filter cache mycache
#    http-request cache-use mycache
#    http-response cache-store mycache

    mode http
    option httplog
    acl yaka_acl  hdr(host)   www.yakakliker.org
    http-request redirect scheme https code 301 unless { ssl_fc }
    use_backend backend1 if yaka_acl

 
    acl guacamole_acl hdr(host) guacamole.yakakliker.org
    use_backend backend3 if guacamole_acl


frontend openproject
    bind *:80
    bind *:443 ssl crt /etc/haproxy/cert/openproject.yakakliker.org.pem name openproject.yakakliker.org

#    filter cache mycache
#    http-request cache-use mycache
#    http-response cache-store mycache

    mode http
    option httplog
    acl openproject_acl  hdr(host)   openproject.yakakliker.org
    http-request redirect scheme https code 301 unless { ssl_fc }
    use_backend backend2 if openproject_acl

Lien

https://docs.haproxy.org/