Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How configure a Virtual Host in pfSense 2.3.2-RELEASE

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 4.6k Views 1 Watching
    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.
    • V
      vaijoe
      last edited by

      Hi,

      I need to know, how configure a virtual host in this version 2.3.2?

      Thanks.

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

        What do you mean by vIrtual host?  A Virtual IP or a LAN server port-forwarded to WAN?  Or a web virtual host or reverse proxy?

        1 Reply Last reply
        Reply Quote 0
        • V
          vaijoe
          last edited by

          Virtual Host WEB, "Vhosts" as in previous versions.

          1 Reply Last reply
          Reply Quote 0
          • J
            javcasta
            last edited by

            Hi.

            Maybe running another instance of nginx listen at one Virtual IP

            You have to edit: /usr/local/etc/nginx/nginx.conf and the server section :
            for example:

            
            # /usr/local/etc/nginx/nginx.conf
            # server
            
            server {
            #LISTEN     YOUR VIRTUAL IP:80;
            listen      10.0.0.253:80;
            server_name  your-domain.localdomain.local;
            
            #charset koi8-r;
            
            #access_log  logs/host.access.log  main;
            
            location / {
            root   /usr/local/www/nginx;
            index  index.html index.htm;
            
            

            And run from shell the nginx instance with

             /usr/local/etc/rc.d/nginx onestart
            

            If you wish your nginx instance run at reboot, add it to config.xml before label :

            <shellcmd>/usr/local/etc/rc.d/nginx onestart</shellcmd>
            

            Regards

            Javier Castañón
            Técnico de comunicaciones, soporte y sistemas.

            Mi web: https://javcasta.com/

            Soporte scripting/pfSense https://javcasta.com/soporte/

            1 Reply Last reply
            Reply Quote 0
            • K
              kpa
              last edited by

              This smells like a question for the cache/proxy subforum.

              1 Reply Last reply
              Reply Quote 0
              • J
                javcasta
                last edited by

                Hi.

                @kpa:

                This smells like a question for the cache/proxy subforum.

                Not necessarily, if I only want a web http server (for whatever reason) independent of the gui.

                Regards.

                Javier Castañón
                Técnico de comunicaciones, soporte y sistemas.

                Mi web: https://javcasta.com/

                Soporte scripting/pfSense https://javcasta.com/soporte/

                G 1 Reply Last reply
                Reply Quote 0
                • G
                  gurpal2000 @javcasta
                  last edited by

                  @javcasta hi there, did you use the above solution in the end? do you mind sharing please?

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy