• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

503 Service Unavailable No server is available to handle this request(HAProxy)

Scheduled Pinned Locked Moved Cache/Proxy
2 Posts 2 Posters 878 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    sraman
    last edited by Feb 25, 2021, 2:54 AM

    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 haproxy

    defaults
    log global
    mode http
    timeout connect 5000ms
    timeout client 50000ms
    timeout server 50000ms

    frontend http-in
    bind *:8080

    acl 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 check

    backend App2
    reqrep ^([^\ ]\ /)app2[/]?(.) \1\2
    server app2 app2:8080 check*******

    P 1 Reply Last reply Feb 25, 2021, 7:30 PM Reply Quote 0
    • P
      PiBa @sraman
      last edited by Feb 25, 2021, 7:30 PM

      @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...

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received