503 Service Unavailable No server is available to handle this request(HAProxy)
-
Hello @PiBa
I'am new to haproxy and ! I've tried several configurations but nothing worked so far. At the moment my haproxy returns the error "503 Service Unavailable No server is available to handle this request". On the stats page the server seams to be ready. What could cause this error? Here is my current config:
*******global
log 127.0.0.1 local0 notice
maxconn 2000
user haproxy
group haproxydefaults
log global
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000msfrontend http-in
bind *:8080acl has_app1 path_beg /app1 acl has_app2 path_beg /app2 use_backend App1 if has_app1 use_backend App2 if has_app2 default_backend App1
backend App1
reqrep ^([^\ ]\ /)app1[/]?(.) \1\2
server app1 app1:8080 checkbackend App2
reqrep ^([^\ ]\ /)app2[/]?(.) \1\2
server app2 app2:8080 check******* -
@sraman
This config does not look like it would be generated by the pfSense haproxy package like this.. are you sure it is the one used? the config seems okay by itself...