Pfsense haproxy | ACL "http-request set path" triggers ERR_TOO_MANY_REDIRECTS

Hi there

My origin server runs pfsense with haproxy. (Domain: + subdomains)
It’s got a working LetsEncrypt certificate in place,
HTTP to HTTPS redirect is disabled on pfsense to prevent a loop.
Cloudflare SSL/TLS encryption mode is Full (strict).

The setup works fine via LAN and WAN, except that it does not serve the Apache RootDirectory,
but displays the site’s folder instead.

That’s why I created the following ACL on haproxy:
http-request set path fmt: /FOLDER_NAME

This makes the browser open the correct URL.
However, it now also triggers the message ERR_TOO_MANY_REDIRECTS.

There are no conflicting page rules in place.
I’ve worked through your recommendations found at

and took a look at similar topics here on the board, but to no avail.

Can you please provide some assistance?

Thanks a bunch

Btw: No WordPress involved.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.