2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by lucky1981_iway
0

You can do virtual hosting, using this:

<?xml version="1.0"?>
<!DOCTYPE jboss-web>
 
<jboss-web>
<context-root>myapp</context-root>
<virtual-host>apphost1</virtual-host>
</jboss-web>

And then define hosts in your
deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml

Simply copy the <host name="localhost"></host> tags and contents, and rename
"localhost". You can then add unlimitted alias tags. Here's an example:

<Host name="osnet">
<Alias>66.74.22.21</Alias>
<Alias>mydomain.com</Alias>
<Alias>subdomain.mydomain.com</Alias>
<Alias>mylocalhost1</Alias>
<Alias>mylocalhost2</Alias>
 
<!-- Access logger -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="osnet_access" suffix=".log"
pattern="common"
directory="${jboss.server.home.dir}/log"/>
 
<Valve
className="org.jboss.web.tomcat.security.SecurityAssociationValve"/>
<!-- Default context parameters -->
<DefaultContext cookies="true" crossContext="true"
override="true"/>
</Host>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.