3 Replies Latest reply on Mar 14, 2005 7:27 AM by cstechno

    Virtual host in JBoss 3.2.6

    pouncilt

      Hello:

      I am trying to do virtual hosting but I am not having any luck.
      I would like to set up a www.abc.com virtual host.

      my server.xml looks like this:



      abc.test




      my jboss-web.xml looks litk this:
      <jboss-web>
      <context-root>/</context-root>
      <virtual-host>www.abc.com</virtual-host>
      </jboss-web>


      When I go to www.abc.com I get a page not found. What I am doing wrong? Any help is appreciated.

      Thanks!

        • 1. Re: Virtual host in JBoss 3.2.6
          pouncilt

          my server.xml is this:



          mycajun.test


          • 2. Re: Virtual host in JBoss 3.2.6
            pouncilt

            Host name="www.cajun.com"
            Valve className="org.apache.catalina.valves.AccessLogValve"
            prefix="cajunfam_access_log." suffix=".log"
            pattern="common" directory="${jboss.server.home.dir}/log"
            resolveHosts="false"

            Aliasmycajun.test/Alias

            Context path="" docBase="" debug="1"
            /Host

            • 3. Re: Virtual host in JBoss 3.2.6
              cstechno

              do u use a war file or an ear file..
              in the case of war file editing jboss-web.xml will do or if you are using ear file then edit the application.xml file which is in meta-inf folder..
              give an entry like
              <virtual-host>www.abc.com</virtual-host> under the context-root element..