Tomcat Interview Questions – 1 How do you create multiple virtual hosts? If you want tomcat to accept requests for different hosts e.g., www.myhostname.com then you must 0. create ${catalina.home}/www/appBase , ${catalina.home}/www/deploy, and ${catalina.home}/conf/Catalina/www.myhostname.com 1. add a host entry in the server.xml file 1 <Host appBase="www/appBase" name="www.myhostname.com"/> 2. Create the the following file under conf/Catalina/www.myhostname.com/ROOT.xml [...]






August 5, 2010
0 Comments