Web application access different between Domain Name and IP

Posted by h82 on Server Fault See other posts from Server Fault or by h82
Published on 2012-10-12T02:22:22Z Indexed on 2012/10/12 3:38 UTC
Read the original article Hit count: 148

Filed under:
|
|
|
|

in our office, we have a web application running. When we access the application by the domain name, http://server.domain.com/application/name it will display the current version of application.

However, when we go by the IP address, http://192.168.1.111/application/name it will display the old version of that application. One thing is that we can access that application either by http://server.domain.com/ (it will be redirected to the long URL automatically) or http://server.domain.com/application/name when we are using domain name.

But only accessible via the exact URL when we use IP address. Why is it showing the old version and how can it be corrected? It is running JRun4, Apache on Red hat. I've checked in httpd.conf a bit but could not find any. Please advice what should be done to display the same (updated version) when we access using domain name or IP address. Thank you.

© Server Fault or respective owner

Related posts about apache2

Related posts about ip