File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Change IP to alias in customers web browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Change IP to alias in customers web browser" Watch "Change IP to alias in customers web browser" New topic

Change IP to alias in customers web browser

robert kuper

Joined: Aug 15, 2012
Posts: 1
I have a proprietary java based web application that is putting the host IP address in the customers web browser. Is there any way to modify a tomcat config file to replace the IP with the alias? It is in two places in the URL. We are currently using a reverse proxy to redirect public traffic to the alias but something in tomcat or the application itself is pushing the IP address to the browser once it hits the web server. I have looked at the server.xml and web.xml but am having difficulty determining exactly what to do. FYI if there is something below a "programing greenhorn" that's me!


What i would like to see:****&ServiceID=*&UserDefined1=&UserDefined2=*&UserDefined3=*&UserDefined4=*&UserDefined5=*&UserDefined6=
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

When you say that the application is "putting" the IP address into the URLs it generates, do you mean that the application itself actually generates absolute URLs in that form?

(Based on your self-assessment, you didn't write this application, right? So you would have to track down the programmers and ask them.)

If the application is generating the URLs like that, then Tomcat can't do anything about it. But it's possible that the application is just generating relative URLs, in which case it might be something to do with this reverse proxy you mentioned, and you might be able to do something in the configuration of the reverse proxy or the Tomcat server. Exactly what, I don't know, but you have to get the first question answered before you ask that one.
I agree. Here's the link:
subject: Change IP to alias in customers web browser
It's not a secret anymore!