pfSense haproxy - Proxy to subdirectory

I’m in the process of moving from nginx as a reverse proxy to haproxy (one less VM to worry about…).

I want to proxy to a specific URL, not just the server.

In nginx, all I have to do is with nginx is:

location / {
		include proxy_params;
		proxy_pass http://internal_server/subdirectory/;
		allow all;
	}

But, after a weekend of Google University :wink: I still cannot figure out how to do it with haproxy. Does it go in the frontend or backend? I assume that it would be part of the ACL and Actions but everyone knows what assumes means.

Thanks!

HAProxy examines the front end and uses the ACL to match the back end destination.

Thanks @LTS_Tom - I watched the video twice. The multiple servers is working. What I am trying to do is have www.site.org actually point to www.internal.lan/subsite. It isn’t a 301 redirect (e.g. I don’t want www.site.org to become www.site.org/subsite - I can get that to work). Rather, I want redirection to be right to the subsite like I have done with nginx.