Bonjour
j'utilise un haproxy pour binder une adresse disons publique pour router vers un serveur WEB apache/wordpress et tout le bazard...
cette adresse est aussi une adresse utilisant un certificat SSL lié à une URL particulière donc....
@public ---> haproxy -----> serveur web 1
mon interrogation c'est de savoir si mon haproxy peut binder une seconde adresse/url/ vers un serveur web2 ? autrement dit : @public ---> haproxy -----> serveur web 1 ou 2
ou est ce que je dois faire un second haproxy dédié à cette seconde adresse ?
autrement dit
@public ---> haproxy1 -----> serveur web 1
+
@public ---> haproxy2 -----> serveur web 2
la doc officielle haproxy n'est pas claire sur ce sujet ... pour tant je l'ai lu et fouillé assez intensément cette semaine...
ma config haproxy ressemble à ça actuellement
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55 global [...] defaults mode http log global option httplog option dontlognull option http-server-close option forwardfor except 127.0.0.0/8 option redispatch retries 3 timeout http-request 10s timeout queue 1m timeout connect 10s timeout client 1m timeout server 1h timeout http-keep-alive 10s timeout check 10s maxconn 3000 frontend http_proxy mode http option httplog option dontlognull maxconn 2500 bind ...............................:80 bind ...............................:443 ssl crt /etc/haproxy/ssl/new/.......................pem reqidel ^X-Forwarded-Proto:.* reqidel ^X-Forwarded-Host:.* reqidel ^X-Forwarded-For:.* acl ........................-preprod hdr_beg(host) -i preprod use_backend preprod if .........................-preprod default_backend prodhttps stats uri /haproxy stats realm Haproxy\ Statistics stats auth admin:fhsdfgdghqsdqsdfg ...patatipatata backend prodhttps redirect scheme https if !{ ssl_fc } option httpclose option forwardfor balance leastconn cookie SERVERID-PROD insert server web1 ..................................:80 check cookie web1 check maxconn 150 stats uri /haproxy stats realm Statistiques\ Proxy stats auth admin:nijjiyypxy stats refresh 30s
Merci si vous avez des idées ou déjà réaliser ce type de choses....
quelle est la bonne methode ?
Merci
Partager