Welcome to Aspire Knowledge Central (AKC)
Home Public Library Author Content
Virtual hosting in tomcat and other configuration issues.
Click here to provide feedback or comments at the bottom of this page
How do you set this up?
domain1 uses context1
domain2 uses context2
domain1 and domain2 uses common_context
How does virtual hosting work in tomcat?
It uses the host tag in connections with contexts. I am not too clear on this yet.
What is appbase?
What is this used for?
Can I have context shared between two virtual hosts?
Is this possible?
Write an article on setting up virtual hosts..
Elaborate on sharing contexts. Elaborate default host, crosscontext, appbase and comment on any other parameters related to
1. host
2. context
3. Engine
Keywords
host
context
Engine
appbase
context sharing
How does one use or benefit from crossContext?
Can one use this for reusing contexts across virtual hosts? What is its intended use? How compatible is it with other web containers?
How does tomcat virtual solution compares to apache?
Will apache be the solution to this? How does the virtual hosting differ there?
Sample alias setup
<Host name="www.knowledgefolders.com"
appBase="D:/webpage_demos/akc"
unpackWARs="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Alias>knowledgefolders.com</Alias>
<Alias>www.knowledgefolders.net</Alias>
<Alias>knowledgefolders.net</Alias>
<Alias>www.knowledgefolders.org</Alias>
<Alias>knowledgefolders.org</Alias>
<Context path="" docBase="D:/webpage_demos/akc"
debug="0" reloadable="false"/>
<Context path="/akc" docBase="D:/webpage_demos/akc"
debug="0" reloadable="false"/>
</Host>