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

    Can the Reverseproxy forward to different Servers by path?

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 2.1k 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.
    • G
      guybrush
      last edited by

      Hi,

      I´m wondering if the reverseproxy package can so something like this (assuming my network is reachable under sub.domain.com):
      surf to sub.domain.com/page1 -> forward internally to server 1
      surf to sub.domain.com/page2 -> forward internally to server 2
      ….

      I´m sorry, I do not know how to explain that better, but I think you got the point. I´f this isn´t working, what would you suggest me to do, if I have a couple of internal HTTP(S) resources and just one subdomainname available?

      Best regards
      Johannes

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Varnish is a reverse proxy with cache and can do it for you.

        at apache+modsecurity package i didn't find a way.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • G
          guybrush
          last edited by

          thanks for your reply. but with modsecurity my webs would be much safer, that´s why I intendet to use it. It seems you´re rather familiar with modsecurity.
          what would you do in my situation? tbh, I can make more subdomains, but for the sake of it i just wanted to have one.

          best regards

          //edit: i read through the varnish docs, and saw it cannot handle https, which is cruicial for me (OWA, filetransfer,…)

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            You can use all:

            I've set this scenario some times and it worked very well.

            Https -> haproxy –--
                                        |---> apache + modsecurity -->  webserver
            Http -> varnish ------

            You can Also set this:

            Apache+modsecurity ---> varnish --->  web servers(/test)
                                                       |-----> Web servers (/test2)

            In this case, apache handles ssl.

            Notes:
            Apache can do what you want but today the package Does not include this option.
            May be in a close future I may include this feature to gui.

            Varnish is faster then apache as a reverse proxy, do a test if you have time.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

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