View Full Version : [ubuntu] Bizarre Apache/Tomcat redirect

November 6th, 2012, 06:47 AM

I've got a LAMP/Tomcat Ubuntu Server install running, and I also installed Railo and Mura CMS. I performed all of this installation at home with the server on my home network. Everything worked great including the Apache proxying to the Tomcat instance running Mura.
Then I took the server to it's new home at work and changed the IP on the NIC to its new public IP. Now when I try to browse to the test website it tries to redirect to the IP the server had in my home network which, of course, fails to load the site!!

Why on earth is it doing that?? I can't find anywhere in the configs where there's even a reference to that IP address.

Any help would be much appreciated as this is a serious roadblock to putting it in production.


November 6th, 2012, 01:05 PM
I'd start by looking at the ProxyPass and ProxyPassReverse directives in your Apache configuration.

Nice bike, by the way. Watch out for those weather balloons.

November 6th, 2012, 06:25 PM
Thanks for the response,
Don't think it's that, they're just:

ProxyPass / http://localhost:8080
ProxyPassReverse / http://localhost:8080

and localhost points to like it should.

It seems to be the Tomcat side of things as if I try to browse to the server using the IP address and port 8080 (bypassing Apache) I still get redirected to!

Yea those balloons just choke me up everytime :)