Navigation

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

    Single IP e more server Web.

    Firewalling
    2
    8
    102
    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.
    • W
      WhiteTiger-IT last edited by

      Meanwhile, happy new year to all friends on this forum.

      With a single IP address I will hijack everything on an Apache server and Apache will then hijack the various domains on the individual Virtual Servers.
      So domain1, domain2 and domain3 will all be associated with a single IP and will be managed by a single Apache server.

      But when there are more than one Apache servers, how do I do it?
      For example domain1 and domain2 must be managed by Server-A, while domain 3 must be managed by Server-B.
      Both should be in a DMZ.
      Furthermore, the IP is dynamic, so I already have the problem of activating a DDNS as well.

      Thanks in advance for the advice.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @WhiteTiger-IT last edited by

        @whitetiger-it
        This can only be done at the application layer. It's necessary to read out the HTTP host header.

        So if you want to do that on pfSense you will need to run a proxy server package like HAproxy.

        @whitetiger-it said in Single IP e more server Web.:

        Furthermore, the IP is dynamic, so I already have the problem of activating a DDNS as well.

        That doesn't make any difference. You need a public DNS and an entry for each host, people should be able to access.
        If you have a dynamic IP you have to use a DDNS and configure pfSense to update it for each host name.

        W 1 Reply Last reply Reply Quote 0
        • W
          WhiteTiger-IT @viragomann last edited by WhiteTiger-IT

          @viragomann said in Single IP e more server Web.:

          This can only be done at the application layer. It's necessary to read out the HTTP host header.
          So if you want to do that on pfSense you will need to run a proxy server package like HAproxy.

          But I don't want to balance the load, but split it across two servers. One domain goes to A and one goes to B.

          Thanks for your reply.

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @WhiteTiger-IT last edited by

            @whitetiger-it said in Single IP e more server Web.:

            But I don't want to balance the load, but split it across two servers. One domain goes to A and one goes to B.

            That is exactly what HAproxy can do for you.

            You can also configure a proxy on one of your Apache webservers itself using the proxy module. I did that on my home network. But if this one goes down both are unreachable.

            W 1 Reply Last reply Reply Quote 0
            • W
              WhiteTiger-IT @viragomann last edited by

              @viragomann said in Single IP e more server Web.

              That is exactly what HAproxy can do for you.

              Where I find a guide to configure it?

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @WhiteTiger-IT last edited by

                @whitetiger-it
                Search the web.
                A simple one I used: https://www.servethehome.com/how-to-haproxy-ha-load-balance-a-web-server-with-a-pfsense-sg-4860/

                You may also take a look into the proxy section in this forum and post your questions there.

                W 1 Reply Last reply Reply Quote 0
                • W
                  WhiteTiger-IT @viragomann last edited by

                  @viragomann said in Single IP e more server Web.:

                  @whitetiger-it
                  Search the web.
                  A simple one I used: https://www.servethehome.com/how-to-haproxy-ha-load-balance-a-web-server-with-a-pfsense-sg-4860/

                  I had already found and read this article yesterday, but we still talk about load balancing.
                  Which means that if Server-A is down or too busy, HAProxy will divert traffic to Server-B.
                  Furthermore, this also means that the two servers have the exact same web applications.

                  Instead, I have to send an application to one server and another application, different from the first, to the second server.
                  I do not find this configuration described anywhere.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @WhiteTiger-IT last edited by

                    @whitetiger-it
                    Yeah, seems to got the wrong link. But load balancing is another feature of haproxy. There is no need to use it.

                    Simply you set up each of your internal web servers as backend.
                    Then configure your host names as frontends. In this settings you can state a backend to use for that host name.
                    So if you have a unique host name in the frontend and stated only one backend, there is no load balancing at all.

                    1 Reply Last reply Reply Quote 0

                    Products

                    • Platform Overview
                    • TNSR
                    • pfSense
                    • Appliances

                    Services

                    • Training
                    • Professional Services

                    Support

                    • Subscription Plans
                    • Contact Support
                    • Product Lifecycle
                    • Documentation

                    News

                    • Media Coverage
                    • Press
                    • Events

                    Resources

                    • Blog
                    • FAQ
                    • Find a Partner
                    • Resource Library
                    • Security Information

                    Company

                    • About Us
                    • Careers
                    • Partners
                    • Contact Us
                    • Legal
                    Our Mission

                    We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                    Subscribe to our Newsletter

                    Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                    © 2020 Rubicon Communications, LLC | Privacy Policy