Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat5.5 virtual hosts

 
Ali Ekber
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to set-up few virtual hosts on Tomcat5.5. Anybody knows any resources that show how to do this? I have done this on Tomcat4.1, but it seems like 5.5 has a different set up. Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got multiple virtual hosts working in Tomcat 5.5.9 - a typical entry looks like:

Note that if I wanted both "www.wbrogden.com" and "wbrogden.com" to work, it means a separate <Host entry for each. Be sure you define a defaultHost in the <Engine element.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic