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

    Context based Switching

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 839 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.
    • S
      sai ravi
      last edited by

      Hi
          I have a load balancing setup as mentioned below.

      Server 1 : 10.100.11.33
      Server 2 : 10.100.11.35
      Load Bal : 158.xx.xx.xx

      Now i have a requirement in which a particular context of the URL should be forwarded to server 1 and not to server 2.Let's say the traffic

      https://forum.pfsense.org can hit both the servers. But https://forum.pfsense.org/index.php?action=post;board=3.0 should be forwarded to

      server 1 alone.

      I have installed HAProxy in PFSense.Can this be achieved through HAProxy in pfsense particularly from GUI Mode or is there any possibility to achieve this kind of context based switching?

      Need your suggestions please.

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

        Hi Sai Ravi,

        If you only want to use the gui options, then probably defining 2 backends, where the second backend only has one server could be an option.. Then create a second 'shared frontend' and give it an acl like 'path starts with: /index.php'.

        That said, you could probably easier to write it into advanced option in the backend something like this:

        use-server server1 if { path_beg -i /index.php }
        

        (untested)

        With the new changes comming in package version 0.33 it should be easier to do with gui options only.. 'use-server' is not yet in there though..

        Hope it helps, regards,
        PiBa-NL

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