N
N
nano_e_t_42017-01-27 05:40:13
HAproxy
nano_e_t_4, 2017-01-27 05:40:13

How to set errorfile in haproxy, default_backend?

Hello everyone
Plz tell me how to set errorfile in default_backend?
I looked at the docks (although I ran through my eyes, I didn’t really delve into it), I read Google, I did this:

frontend:
...
default_backend example-bck

backend example-bck
   mode http
  errorfile 403 /etc/haproxy/errors/403.http

but on request is given
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question