<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Keith's Web Blog RSS Feed</title>
<language>en-us</language>
<link>http://www.keithwatanabe.net/index.php</link>
<description>Keith Watanabe's Website</description>
<item>
<title>Adding a virtual host</title>
<link>http://www.keithwatanabe.net/blogs/2004/2/12/de3d8763043b0c8755cbb8ba9629675f.html</link>
<description><![CDATA[# adding a virtual host
# this is for JBoss 3.2*

$JBOSS_HOME/server/default/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml

<Host name="jadmin.reina">
  <Valve className="org.apache.catalina.valves.AccessLogValve"
    prefix="jadmin"
    directory="${jboss.server.home.dir}/log"/>
</Host>

where prefix = your unique directory name for virtual host.
then for your web application edit:

ROOT/WEB-INF/jboss-web.xml

add the line:
<jboss-web>
    <context-root>/</context-root>
    <virtual-host>jadmin.reina</virtual-host>
</jboss-web>

where context-root defaults to '/' when the user types in your host
and <virtual-hots> is the actual virtual host that maps to the
jboss-service.xml file.
]]></description>
<pubDate>Thu, 12 Feb 2004 13:36:07 -0700</pubDate>
<guid>http://www.keithwatanabe.net/blogs/2004/2/12/de3d8763043b0c8755cbb8ba9629675f.html</guid>
</item>
</channel>
</rss>
