r/haproxy • u/kinslayer1982 • Sep 29 '25
Different options for http/websocket on same backend
Hi.
I'm running HAProxy 3.2.5. I'd like to know if it is possible to have different options for websocket and normal http connections on the same backend/port. I'm talking about settings like 'http-server-close' vs 'keep-alive'.
Or do I have to create a second backend with the same servers/ports and use an acl to direct the requests to the appropriate backend?
5
Upvotes
View all comments
Show parent comment
2
u/kinslayer1982 Sep 29 '25
Yea, I know the linked page. The reason I am asking is that I don't have any websocket only servers. If websockets are used the servers/ports are identical. Having already a lot of backends I just thought maybe there is a way of not having to add even more just for websockets.
Well, maybe I'll test it without the http-close first and see how it performs.