more information ,
netstat display the haproxy socket : 6417/haproxy /var/run/haproxy/haproxy_plain.sock.6416.tmp

and i have answer to HTTP request  (after disabling PROXY protocol) :
echo -e "GET / HTTP/1.1\r\nHost: domaine.tld\r\n" | socat unix-connect:/var/run/haproxy_plain.sock STDIO
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Mon, 12 Dec 2016 19:12:32 GMT
.../...

so i really don't know what is wrong in my configuration...

Le 12/12/2016 à 19:17, Arnall a écrit :
Hello everyone,

i got this configuration to offload TLS on multiple process and handle the plain http on only one process:

global
    nbproc 3

listen web_tls
    mode    http
    bind *:443 ssl crt certif.pem process 2
    bind *:443 ssl crt certif.pem process 3

    maxconn 100000

    server web-plain unix@/var/run/haproxy_plain.sock send-proxy-v2

frontend web_plain
    mode http
bind unix@/var/run/haproxy_plain.sock accept-proxy user nobody process 1

    maxconn 100000

    use backend .../...

no matter what user, mode or directory i use for the unix socket it always ends the same way : error 503

log : web_tls~ web_tls/web-plain 6/0/-1/-1/6 503 213 - - SC-- 0/0/0/0/3 0/0 "GET / ....

If i try with a IPV4 server (127.0.0.1:80) instead of unix socket, it works well ...

I really don't know what's wrong here...if you have any advice ...

Thank you !



Reply via email to