1 Reply Latest reply on Sep 26, 2003 1:25 PM by jackofspades

    How to deploy a war app to multile virtual hosts

    Ciaran Duffy Newbie

      Hello out there!

      I can currently configure the Jboss 3.0/Tomcat 403 bundle inconjunction with the apache webserver (using the warp Connector) to deploy one war application to one virtual host but how can I deploy the war to multiple hosts eg

      test.war to www.abc.com and www.def.com so I have

      www.abc.com/test and www.def.com/test

      Any help appreciated.

      Regards

        • 1. Re: How to deploy a war app to multile virtual hosts
          jackofspades Newbie

          I haven't looked at the warp Connector, but I think using the JK2 connector you can specify in the workers2.properties file different hostnames. I haven't tried it myself, but I'm thinking that it should work:


          # comment out for production server
          # [logger.apache2]
          # level=DEBUG

          [shm]
          file=C:/Apache2/logs/shm.file
          size=1048576

          # Example socket channel, override port and host.
          [channel.socket:localhost:8009]
          port=8009
          host=localhost

          # define the worker
          [ajp13:localhost:8009]
          channel=channel.socket:localhost:8009

          # Uri mapping
          [uri:hostname1/*.jsp]
          worker=ajp13:localhost:8009

          [uri:hostname2/*.jsp]
          worker=ajp13:localhost:8009