Let's say I create a <Host> element and add my application files under
${catalina.home}/www/appBase/www.cnn.com

?! where did you get that path? Never mind, it doesn't matter because...

http://wiki.apache.org/tomcat/CreateVirtualHosts


If any one in the world type www.cnn.com would that request come to my
server and get application under ${catalina.home}/www/appBase/www.cnn.com

..this is so seriously confused. Answer: of course not -- DNS lookups
will provide the *real* address of CNN as they're supposed to.

that *real* address of CNN is its IP address.
If my server has a network card with that public IP address and on my server my tomcat installation server.xml (<connector> element) has some where in it specifies that IP address, offcourse if anyone in the world type WWW.CNN.COM that request would come to my server. In reality Turner broadcasting owns the domain name and IP address and I cannot have it.

My point here is that we need to consider IP address along with Host name.


So do you actually have a registered domain? Does the IP address
point to your server? If so, you're set. Lather, rinse, repeat.  :-)


Ok now you are talking IP address. Offcourse I am working with a registered domain name mapped to a specifi IP address. So, how do I make tomcat recognize it?
I want to specify two IP addresses.

Let me ask you this, Charles and Hassan, do you have an installation with tomcat referring to two websites with two different IP addresses?

Thank you.

-rao

_________________________________________________________________
Don’t miss your chance to WIN 10 hours of private jet travel from Microsoft® Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to