3 Replies Latest reply on Mar 15, 2003 7:22 PM by Randy Secrist

    updated 'virtual host' example for jboss/tomcat

    Victor Sima Newbie

      The quick start guide section, 'setting up virtual hosts for tomcat', seems totally out of date. It contains a reference to a jboss.jcml which doesnt exist for 3.x .
      As a result I am having a very hard time sucessfully configuring a virtual host using the current example.

      Can anyone provide a better, updated example?

      Please include a copy of the file
      $JBOSS_HOME/server/default/deploy/tomcat41-service.xml . A copy from the latest release (JBoss-3.0.6_Tomcat-4.1.18) would be very helpful.


      Thanks.

        • 1. Re: updated 'virtual host' example for jboss/tomcat
          Victor Sima Newbie

          I am now getting a "HTTP Status 500 - No Context configured to process this request" error when hitting my site. Below is my tomcat41-server.xml file.

          If anyone sees anything wrong with it let me know.

          ...

          &catalina.home;

          <!-- Uncomment this if you want interval snapshot for the
          session clustering.
          interval
          2000
          -->








          <Logger className - "org.jboss.web.catalina.Log4jLogger"
          verbosityLevel = "debug"
          category = "org.jboss.web.Host=localhost"/>




          www.slammy.com








          ...




          ...

          • 2. Re: updated 'virtual host' example for jboss/tomcat
            Randy Secrist Newbie

            I was having problems with this too, so here is what I did.

            1)
            Created a directory in the server/default directory called domains.

            2)
            For each virtual host, created a directory within the domains directory. /domains/secristfamily, /domains/missiontracker

            3)
            Modified the tomcat-service in /server/default to be:
            <!-- Secrist Family Virtual Host -->

            www.secristfamily.com




            <!-- Mission Tracker Virtual Host -->

            www.missiontracker.net




            4)
            Make sure you modify the engine name from localhost to match at least one of the names of the hosts, unless you keep the localhost host of course. (jakarta's site indicates that at least 1 host must match the name of the engine.)

            Hope this helps...

            Randy

            • 3. Re: updated 'virtual host' example for jboss/tomcat
              Randy Secrist Newbie

              Actually, it turns out you don't need to add the appBase attribute in the host tag. It was pointing to the wrong directory anyway - but still seemed to work.