As described in the admin/devl guide, do the following.

Step 1: Define the hosts in the jbossweb-tomcat41.sar/META-INF/jboss-service.xml 
Config attribute fragment:


  |       <attribute name="Config">
  |          <Server>
  |             <Service name="JBoss-Tomcat">
  |                <Engine name="MainEngine" defaultHost="vhost1">
  |                   <Logger className="org.jboss.web.tomcat.Log4jLogger"
  |                      verbosityLevel="debug" 
category="org.jboss.web.localhost.Engine"/>
  | 
  |                   <Host name="vhost1">
  |                      <Alias>vhost1.starkinternational.com</Alias>
  | 
  |                      <Valve className="org.apache.catalina.valves.AccessLogValve"
  |                         prefix="vhost1" suffix=".log"
  |                         pattern="common" directory="/log"/>
  |                      <Valve 
className="org.jboss.web.tomcat.security.SecurityAssociationValve"/>
  |                      <!-- Default context parameters -->
  |                      <DefaultContext cookies="true" crossContext="true" 
override="true"/>
  |                   </Host>
  | 
  |                   <Host name="vhost2">
  |                      <Alias>vhost2.starkinternational.com</Alias>
  |                         prefix="vhost2" suffix=".log"
  |                         pattern="common" directory="/log"/>
  | 
  |                      <!-- Access logger -->
  |                      <Valve className="org.apache.catalina.valves.AccessLogValve"
  |                         prefix="vhost2" suffix=".log"
  |                         pattern="common" directory="/log"/>
  |                      <Valve 
className="org.jboss.web.tomcat.security.SecurityAssociationValve"/>
  |                      <!-- Default context parameters -->
  |                      <DefaultContext cookies="true" crossContext="true" 
override="true"/>
  |                   </Host>
  |                </Engine>
  | 
  |                <!-- A HTTP/1.1 Connector on port 8080 -->
  |                <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
  |                   address="" port="8080" minProcessors="5"
  |                   maxProcessors="100" enableLookups="true" acceptCount="10" 
debug="0"
  |                   connectionTimeout="20000" useURIValidationHack="false"/>
  |             </Service>
  |          </server>
  |       </attribute>
  | 
  | 

Step2: Define the Host to which the web app should be deployed using the 
WEB-INF/jboss-web.xml descriptor virtual-host element:


  | <jboss-web>
  |     <!-- Deploy this war to vhost2 -->
  |    <virtual-host>vhost2.starkinternational.com</virtual-host>
  | </jboss-web>
  | 


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824409#3824409";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824409>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to