0 Replies Latest reply on Aug 26, 2003 12:12 PM by Kevin Hooke

    using virtual hosts with multiple contexts

    Kevin Hooke Newbie

      Hi - I am using jboss 3.2.1 with tomcat4.1.2 bundle.

      I have set up a virtual host using the jboss-web.xml in my webapp war, and a entry in the jboss-service.xml for the jbossweb-tomcat.sar

      I have mapped a webapp, say webapp1 to a domain, say www.exampledomain.com

      I now want to deploy a second webapp, webapp2, and access it using a context URL like how you can when you deploy webapps on jboss/tomcat normally (without using the virutal host).

      So my problem is, how can I map webapp1 to:

      and webapp2 to

      When I access www.exampledomain.com I get webapp1 as expected, but trying www.exampledomain/webapp2 gets a '400 invalid path' error.

      Heres a snippet from my jboss-service.xml:

      <!-- Access logger -->

      <!-- Default context parameters -->

      and heres the jboss-web.xml for webapp1:
      <?xml version="1.0"?>
      <!DOCTYPE jboss-web>

      How do I configure for deploying webapp2 to be accessed via:
      http://www.exampledomain/webapp2 ?

      Thanks in advance,
      Kevin Hooke