Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Help with HAProxy URL rewrite

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 970 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      blank5tare
      last edited by

      (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?

      1 Reply Last reply Reply Quote 0
      • N
        nib01
        last edited by

        would you mind telling me the model of Sophos UTM that you have before?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.