tomcat to tomcat redirect.
Hi All, I'm using tomcat 5.5 . I'm using public IP- http://1.2.3.4:8084/Project/. Now the similar instance is running on the internal IP. http ://192.168.100.102:8080/Project/. My question is - Can I redirect from http://1.2.3.4:8084/Project/ to http ://192.168.100.102:8080/Project/ ? Please help me for the same. Thnaks Rohan7 -- View this message in context: http://www.nabble.com/tomcat-to-tomcat-redirect.-tp19912490p19912490.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat to tomcat redirect.
- Original Message - From: Rohan7 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 10, 2008 8:02 AM Subject: tomcat to tomcat redirect. Hi All, I'm using tomcat 5.5 . I'm using public IP- http://1.2.3.4:8084/Project/. Now the similar instance is running on the internal IP. http ://192.168.100.102:8080/Project/. My question is - Can I redirect from http://1.2.3.4:8084/Project/ to http ://192.168.100.102:8080/Project/ ? Please help me for the same. Thnaks Rohan7 Hi Rohan, Not sure if you asking how to set TC if so look at the connector in server.xml... Or if you want to do an actual redirect in your app... response.sendRedirect(newUrl); --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- If you cant pay in gold... get lost... - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat to tomcat redirect.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rohan7, Rohan7 wrote: I'm using tomcat 5.5 . I'm using public IP- http://1.2.3.4:8084/Project/. Now the similar instance is running on the internal IP. http ://192.168.100.102:8080/Project/. My question is - Can I redirect from http://1.2.3.4:8084/Project/ to http ://192.168.100.102:8080/Project/ ? A redirect isn't what you want. Technically, a redirect is a response to the original request back to the client that says see this other URL instead. That's not going to work with your private, non-routable 192.168 IP address. Instead, what you're talking about doing is proxying. I'm positive Tomcat can be used as a proxy, but there are better packages out there for proxying like Apache httpd (a bit heavy, but definitely up to the task) or squid (which is exclusively a proxy server). Do you want to proxy all traffic, or just a few special URLs? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjvcf0ACgkQ9CaO5/Lv0PDRKgCgpA7zNP0/ljxlnQWA6dvxqX/1 2sEAnjQqzXsVsaKlrOwhGWpFXhW/cu4w =4zLL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]