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

    Single static IP WAN for hosting multiple website

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 5 Posters 2.3k 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.
    • T
      trifectait
      last edited by

      I need some expert help on how to have this accomplished with the package add-on mod_security+apache+proxy. Currently I'm on pfSense version 2.2.4 with rules and NAT configured to resolve a single website from my internal web-server. Now I would like to host more websites using this add-on but so far im not successful in doing so. I may need to change my current layout to allow the other websites to resolve but I do not know where to start. Any helpful advice is welcomed.

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        I'm no Apache genius, but isn't it a simple matter of just pointing your various domains to the one IP address and then using Apache's virtual hosts to manage all the different sites?

        1 Reply Last reply Reply Quote 0
        • T
          trifectait
          last edited by

          Thats pretty much what I would like to do. The question is can it be done with the package available in pfSense or should I setup another server for that? Also would I need to point it to the firewall local IP for the apache package instead of a server doing the reverse proxy? Almost a step by step would be helpful if possible. Thanks for your comment.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Setup your Apache server behind pfSense and then port-forward 80 and 443.

            1 Reply Last reply Reply Quote 0
            • T
              trifectait
              last edited by

              So what you are saying if I understand your reply correctly, ditch the idea of using the pfSense mod package and just setup another server with apache on it. Create all my virtual hosts with different ports each? also a local host file to direct the incoming pfsense forwards to each static internal IP of the different web-servers?

              I have done this 8 years ago and its not fresh in my head anymore but I thought the built-in package would be simpler.. less typing.. more point and click. Less server resources for a dedicated proxy server since my pfsense server is on a dedicated non-virtualized 1U with enough resources.

              Okay that is the old way I did before and may think of doing it that way if no one knows how to do it the way I would prefer done. Seems difficult to find any help regarding this package and setting it up other then it saying "host multiple websites with 1 IP".

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                This package is to act as (reverse proxy). NOT to run webserver on pfSense. Also, there is a dedicated subforum for packages.

                1 Reply Last reply Reply Quote 0
                • T
                  trifectait
                  last edited by

                  I never stated or was trying to accomplish having both reverse and hosting performed by pfSense, only reverse proxy. Please read carefully otherwise this topic could become something entirely different. Thank you for your well intentioned thought. I think I have found something however that I can use in setting what I need up with the package directly, yes NOT with trying to have pfSense hosting the sites even though I do see you could do that if you really wanted to with another package.

                  1 Reply Last reply Reply Quote 0
                  • jdillardJ
                    jdillard
                    last edited by

                    You shouldn't need any packages on pfSense for that. Just forward the DNS entries for the website(s) to your web server then configure your web server how you want it (freeBSD, apache, mods, etc). If using apache, use vhosts to direct the urls (forwarded from DNS) to the correct web directories on the server.

                    edit: clarification

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      You don't need multiple ports.  Search for Apache Virtual Hosts using your favorite search engine.  Also called name-based virtual hosts.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

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