[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - setting virtualhost and alias for http://mydomain.com

zambak do-not-reply at jboss.com
Tue Jan 8 18:52:36 EST 2008


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118103#4118103

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118103



More information about the jboss-user mailing list