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

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

    Amir Mistric Newbie


      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:


      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">

      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">

      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...