1 Reply Latest reply on Jan 28, 2009 6:31 AM by brettcave

    configure virtual hosts

    mablaev

      It's possible to configure virtual hosts in JBoss 4.2.3 for calling my application app.war for all 3 parts domain names. For instance I need to call app.war for template http://*.mysite.com

      Thanks.

        • 1. Re: configure virtual hosts
          brettcave

          in WEB-INF/jboss-web.xml:

          <jboss-web>
          <class-loading>
          ...
          </class-loading>

          <context-root>/</context-root>
          <virtual-host>virtual.host.name</virtual-host>
          </jboss-web>

          in /path/to/jboss/server/config/deploy/jboss-web.deployer/server.xml:
          Find the "<Host name=localhost>...." and add this after:


          virtual.host.name
          another.virtual.host.name





          Not sure if accepts wildcards, if not, then would have to manually enter all instances of *.yourdomain.com as individual aliases......