jerrycat wrote:

Thanks,
just a question here.

Set the appBase attributes for all your Host elements to different paths
and make sure that not one is contained in another. For example, if
you've got two hosts, "localhost" and "www.test.com", you could
configure them like that:
<Host name="localhost" appBase="webapps/localhost" [...]
and
<Host name="www.test.com" appBase"webapps/test" [...]
The question:
If I have a subdomain, demo.test.com, should I define a new Host?
<Host name="demo.test.com" appBase"webapps/demo.test"

If you want demo.test.com to be different from www.test.com, then yes.
Otherwise you could define demo.test.com to be an Alias for www.test.com.

The name after webapps/, which is demo.test, can it be named anyhow?
for example webapps/mydemotestwebapp

Yes.
In fact, there is no law that states that the appBase has to start with webapps/. You could even use absolute paths to point appBase to a directory outside of your CATALINA_BASE.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to