RE: tomcat stand alone and multiple ips.
I've encountered the same problem. Is the only solution to hardcode getRemoteHost()/getRemoteAddr() tests in my servlet? thanks, Ilya -- Ilya Goldin www.pitt.edu/~goldin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 5:19 PM To: Tomcat Users List Subject: tomcat stand alone and multiple ips. I am running tomcat by itself to do some java development work. I want to have a couple development sites refrenced by seperate ips. How can I attach an instance of tomcat to a specific ip? Right now it monitors port 80 on all ips on the box. Can I have one instance of tomcat host multiple 'virtual' sites or do I need to run seperate instances of tomcat listening to different ips? Do I have to run tomcat with apache to do this? Any good tomcat documentation sites besides jakarta.apache.org? -Mike -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat stand alone and multiple ips.
How can I attach an instance of tomcat to a specific ip? Right now it monitors port 80 on all ips on the box. Can I have one instance of tomcat host multiple 'virtual' sites or do I need to run seperate instances of tomcat listening to different ips? $TOMCAT_HOME\webapps\tomcat-docs\config\host.html Looks like you can have mutiple virtual hosts for one instance of Tomcat. OK, fine -- but that's not what I want. I want exactly one virtual host answering to exactly one domain name/ip request. If I have a machine that binds to several different domain names and IPs, I only want Tomcat to answer on ONE of those domain names. By default, it answers on all of them. In a way, I want a valve or filter to complement the existing Remote Address Filter and Remote Host Filter. While those check the source of the request, I want a filter that checks the explicit destination of the request, so that my application does not launch if the request did not explicitly specify its destination. Is this functionality already available? Is there a workaround? Thanks, ig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat stand alone and multiple ips.
That's actually possible as well (with Tomcat 4) -- it just takes a little more work. Let's assume that you want the following: * Host a.mycompany.com answers only on IP address 10.0.0.1 port 8080 * Host b.mycompany.com answers only on IP address 10.0.0.2 port 8080 snip Craig, thank you! This is exactly what I was looking for. I had it all defined exactly as you describe, save for the all-important Connector port=8080 address=10.0.0.1 .../ Knowing the right answer, I went back and looked this up in the Tomcat documenation and sure enough, there it was. This seems like a scenario that users might encounter frequently. I nominate this for a FAQ entry, should anyone be compiling those. -ig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]