• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change IP to alias in customers web browser

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!

Current:
http://x.x.x.x/CCPROChat/CPChatMain.jsp?ChatSrvr=x.x.x.x&AllowPush=0&Orientation=-2147483647&SeperateWindow=-2147483647&Port=15008&CustName=****&ServiceID=*&UserDefined1=&UserDefined2=*&UserDefined3=*&UserDefined4=*&UserDefined5=*&UserDefined6=

What i would like to see:
http://alias.domain.com/CCPROChat/CPChatMain.jsp?ChatSrvr=alias.domain.com&AllowPush=0&Orientation=-2147483647&SeperateWindow=-2147483647&Port=15008&CustName=****&ServiceID=*&UserDefined1=&UserDefined2=*&UserDefined3=*&UserDefined4=*&UserDefined5=*&UserDefined6=
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic