Help with HAProxy URL rewrite
-
(xpost from https://www.reddit.com/r/PFSENSE/comments/5gwm48/help_with_haproxy_url_rewrite/)
Moved over to pfSense from Sophos UTM, and spent part of the day today getting my hands dirty with HAProxy. Here's a quick example of how things are currently configured:
-
https://sub.domain.com/webapp1 -> http://10.20.30.40:1234
-
https://sub.domain.com/webapp2 -> http://10.20.30.41:5678
-
https://sub.domain.com/webapp3 -> http://10.20.30.42:9012
and so on…
I've got it partially working, but not exactly how I would like. I need to append the baseurl internally, as many of my web applications rely on this path being correct. Sophos provided this option (and also appears to use Squid under the hood), but for the life of me, I can't figure out how to do this with HAProxy. A couple applications are automatically redirecting internally from / to /baseurl automatically (which makes them usable at the moment), but several are not (they do not include this functionality) and I'm getting 503 errors on those. What do I need to configure (preferably from the pfSense GUI) to tell HAProxy to append the base url internally, i.e. http://10.20.30.40:1234/webapp1?
-
-
would you mind telling me the model of Sophos UTM that you have before?