user3217902
user3217902

Reputation: 11

Can HAProxy 1.6 forward to urls?

Can I define backend servers like:

Server server1 abc.def.com:8080/xyz check port 8080

Instead of ip:port for server?

Applying such config I receive 503 Service Unavailable error.

Any idea on the right config if any?

Thanks in advance.

Upvotes: 0

Views: 190

Answers (1)

morels
morels

Reputation: 2105

No because HAProxy has not level 7 forwarding. It stands to you to redirect all traffic to abc.def.com:8080 and then create :

  • a server on that machine listening on port 8080
  • a service responding on /xyz request path

Upvotes: 1

Related Questions