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

    How configure a Virtual Host in pfSense 2.3.2-RELEASE

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 5 Posters 3.8k 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.
    • 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
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.