Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add category link. Update link. Remove unneeded path attribute from Context.

First read this http://tomcat.apache.org/tomcat-57.0-doc/config/host.html

If you want tomcat to accept requests for different hosts e.g., www.myhostname.com then you must

...

No Format
<?xml version="1.0" encoding="UTF-8"?>
<Context
    path="/"
    docBase="www/deploy/mywebapp.war"
    reloadable="true" antiJARLocking="true">
</Context>

...

To add more sites just repeat and rinse, all webapps can share the same war file location and appbase

...

CategoryFAQ