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

    [HAPROXY] Links rewriting

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 655 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.
    • Z
      zekicker
      last edited by

      Hello,

      I'm reverse proxying web app such as :
      https://mydomain/app1/
      https://mydomain/app2/
      https://mydomain/app3/

      My problem is with my backend servers. Web servers (nginx, apache) don't know my domain and web apps root are not app1, app2, app3, ...
      So, I've got links in my web apps which are not mapping the domain (https://mydomain/app1/)

      To be clear I need the haproxy equivalent directive of Apache ProxyHTMLURLMap.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • P
        PiBa
        last edited by

        Why not use subdomains? app1.mydomain app2.mydomain and use haproxy to send those to the correct webserver? Sounds like a way simpler approach?

        As for rewriting the 'body' of a request or response, thats something that haproxy does not support (yet). Though with lua scripting there are some options to try and implement such a thing yourself, probably wont be easy though..

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