Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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.

share|improve this answer

There are two reasons for this behavior:

  • Virtual hosts
  • Reverse proxy
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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