Tomcat Virtual Host
Posted on 2006-07-22
I know that this would be better if we use Apache to define the Virtual Host in Tomcat. However, I am still testing my application so it would be good if I just can use Tomcat only.
<Host name="mortgagecalc.tus" appBase="MortgageCalculator">
<Context path="/MortgageCalculator" docBase="MortgageCalculator"
debug="5" reloadable="true" crossContext="true">
I have it in my <TOMCAT_HOME>/MortgageCalculator/ROOT/index.jsp
These are my questions.
1. Is that the right way to do it?
2. Do I need to define any DNS Server that will map the mortgagecalc.tus with my local IP Address? Is it local DNS Server or etc?
3. I just want to test it locally (within my networks) so that people won't need to type in my IP Address (192.168.0.16) but only defining the name of mortgagecalc.tus.
Well, my networking knowledge is limited. I am learning it now :)