0

I need some help.

I set up a reverse proxy, which I call and it redirects me to the target address. Everything works, but after some time (a few hours) I start getting 503 instead of 200, and then I have to restart the proxy and everything works again. Below I’m sending the proxy configuration.

What have I configured incorrectly?

haproxy.cfg:

global log /dev/log local0 debug daemon defaults log global mode http option httplog option dontlognull timeout connect 5000 timeout client 60000 timeout server 60000 retries 3 resolvers mydns nameserver dns1 127.0.0.53:53 nameserver dns2 1.1.1.1:53 resolve_retries 3 timeout resolve 1s timeout retry 1s hold valid 30s hold nx 10s hold obsolete 30s frontend SITEA_front bind *33443 ssl crt /etc/haproxy/certs/proxy.SITEB.com_combined.pem alpn h2,http/1.1 mode http option httplog enter code here default_backend SITEA_back backend SITEA_back mode http option http-keep-alive option forwardfor option redispatch timeout connect 5s timeout client 60s timeout server 60s timeout http-keep-alive 30s server sitea1 sitea.com:443 ssl verify required ca-file /etc/haproxy/certs/sitea-chain.crt sni str(sitea.com) resolvers mydns resolve-prefer ipv4 http-request set-header Host sitea.com 
1
  • 1
    Please provide the relevant entries from haproxys error log Commented Nov 17 at 5:37

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.