Organizational Research By

Surprising Reserch Topic

How do you create multiple virtual hosts?



asked Sep 13, 2013 in Tomcate by rajesh
edited Sep 12, 2013
0 votes
18 views



Related Hot Questions

1 Answer

0 votes
If you want tomcat to accept requests for different hosts e.g. www.myhostname.com then you must
  1. Create ${catalina.home}/www/appBase , ${catalina.home}/www/deploy, and ${catalina.home}/conf/Catalina/www.myhostname.com
  2. Add a host entry in the server.xml file 
  3. Create the the following file under conf/Catalina/www.myhostname.com/ROOT.xml 
  4. Add any parameters specific to this hosts webapp to this context file 
  5. Put your war file in ${catalina.home}/www/deploy 
  6. When tomcat starts, it finds the host entry, then looks for any context files and will start any apps with a context.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...