Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

/etc/hosts: mpcore   localhost.localdomain   localhost
::1 mpcore  localhost6.localdomain6 localhost6

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns mdns4_minimal [NOTFOUND=return] mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


auto eth0
iface eth0 inet static

So, when I use IP I get the index.html

But when I use I get "Server Not found" error

share|improve this question
up vote 0 down vote accepted

Your server configuration is fine. The problem is that simply does not exist, neither in DNS nor the hosts file.

Remember that your server's /etc/hosts only applies to programs running on that server. If you are trying to connect from a different computer, it cannot see the server's hosts file, only its own.

share|improve this answer
ok i was able to see the Virtual host from console (localhost) but not from outside : i have ESXi installed on DNS =, and Installed an Ubuntu 10.4 64 bit VM on this ESXi with IP = , dns = Installed apache2 on Configured virtual host "" This is Visible via a browser on the ubuntu console , but not from another computer outside the ESXi Environment Any idea how to resolve this ? Thanks, – kamal Oct 22 '11 at 2:21
@kamal: Add the mpcore subdomain to the DNS servers of The primary server is, start with that. – grawity Oct 22 '11 at 13:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .