1.

How Do You Create Multiple Virtual Hosts?

Answer»

If you want tomcat to ACCEPT requests for different hosts e.g. www.myhostname.com then you MUST

  • Create ${catalina.home}/www/appBase , ${catalina.home}/www/deploy, and ${catalina.home}/conf/Catalina/www.myhostname.com
  • Add a host entry in the server.xml file
  • Create the the FOLLOWING file under conf/Catalina/www.myhostname.com/ROOT.xml
  • Add any PARAMETERS specific to this hosts webapp to this context file
  • Put your war file in ${catalina.home}/www/deploy
  • When tomcat starts, it finds the host entry, then looks for any context files and will start any apps with a context.

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



Discussion

No Comment Found