5 Replies Latest reply on Dec 20, 2002 5:41 PM by binlu88

    Virtual Hosts

      So, am I correct in assuming, that you CANNOT use port based virtual hosts with JBoss 3.0/Jetty ?

      i.e.

      localhost:8080 - the public site
      localhost:8443 - the secure site

      The reason I want to accomplish this, is simply to separate applications into their respective spaces, and while I am certain I could do it, with virtual hosts like:

      public.mydomain.com
      secure.mydomain.com

      This is not convenient for development platforms, that are often stand alone laptops, without elaborate DNS availability...........

      Has anyone else actually accomplished this feat ?

      TIA
      G

        • 1. Re: Virtual Hosts
          • 2. Re: Virtual Hosts

            OK - I read your post again.

            You just want to serve different content from different ports ?

            I think that you need two Jetty's - but check on jetty-discuss...


            Jules

            • 3. Re: Virtual Hosts

              Jules, thanks for the response,

              In looking through the doco @ mortbay, and the groups over @ yahoo, I tried a few things, but I cannont get this setup to work properly. I think the only thing to do in my case, is to run two separate instances of JBoss/Jetty, one to represent the "extranet", available to the outside world, and one to represent the "intranet", available to administrators of the site.

              This seems like a waste of resource to accomplish such a simple thing, but alas I think it is the only way to ensure that the appropriate content gets to the appropriate pepole.

              Thanks again!

              G

              • 4. Re: Virtual Hosts
                erikture

                Hello!

                I am using virtual hosts in my development environment.
                I am developing on a PC and a modify the hosts file in the WINNT/system32/drivers/etc directory like this.

                127.0.0.1 public.mydomain.com
                127.0.0.1 secure.mydomain.com

                Then I do not need any DNS server and I can map any address to my own computer. I am running several instances of the same application/ear within one JBoss. They are all separate from each other and use different databases to.

                /Erik

                • 5. Re: Virtual Hosts
                  binlu88

                  Hi Erik:
                  I just read your message on the forum on Jboss.org. You said you are using virtual hosts in my your environment and unning several instances of the same application/ear within one JBoss. I am trying to the same thing but I have no idea to do it. Would you please tell me how to set the configuration on the Jboss server?
                  I am using jboss-3.0.4_tomcat-4.1.12. Thank you very much. And Merry Christmas!