...
If you want tomcat to accept requests for different hosts e.g., www.myhostname.com then you must
0. create ${catalina.homebase}/www/appBase , ${catalina.homebase}/www/deploy, and ${catalina.homebase}/conf/Catalina/www.myhostname.com
...
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="${catalina.base}/www/deploy/mywebapp.war">
</Context>
|
...
3. put your war file in ${catalina.homebase}/www/deploy
When tomcat starts, it finds the host entry, then looks for any context files and will start any apps with a context.
To add more sites just repeat and rinse, all webapps can share the same war file location and appbase.
...