When trying to call a web site from its IP instead of its Domain Name, I get different pages.

I'm not sure what the issue is, but since these are development servers of some client I'm doing work for I was wondering what would cause this.

link|improve this question

42% accept rate
feedback

2 Answers

up vote 10 down vote accepted

The same server can serve multiple websites, and decide which to serve based on the name. In apache multiple sites on the same address are achieved with name based virtual hosts. Usually the default virtualhost is used when the site is accessed via the IP address.

link|improve this answer
feedback

There are two reasons for this behavior:

  • Virtual hosts
  • Reverse proxy
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.