0 Replies Latest reply on Jan 8, 2008 6:52 PM by zambak

    setting virtualhost and alias for http://mydomain.com

    zambak

      Hi

      We want to deploy an app (on JBoss 4.0.5) under the root context using a virtual host and a set of aliases...

      The goal is to have app respond whenever a user enters any of the following:

      http://www.mydomain.com
      http://www01.mydomain.com
      http://mydomain.com


      In order to accomplish this I have:
      1. set up DNS aliases www, www01 and * to point to same machine IP


      2. created a host entry in /server/all/deploy/jbossweb-tomcat55.sar/server.xml
      like so:

      <Host name="www.mydomain.com" autoDeploy="false" deployOnStartup="true" deployXML="false">
       <Alias>www</Alias>
       <Alias>www01.mydomain.com</Alias>
      </Host>
      

      3. added following to apps WEB-INF/jboss-web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
      <jboss-web>
       <context-root>/</context-root>
       <virtual-host>www.mydomain.com</virtual-host>
      </jboss-web>



      The only problem is http://mydomain.com - when I access it I get a default JBoss home page instead of the application....

      Can anyone tell me if I am missing something....

      Any help is much appreciated...

      Regards
      Z....