issue with default vhost

automatix nginx-forum at
Tue Jan 22 14:19:27 UTC 2013


There is an Nginx instance on one of my VMs ( and three
(enabled) vhosts: "default" and two further vhosts I created.

When I enter the IP in my host browser or "localhost" in my guest browser,
in both cases the default page (/usr/share/nginx/html/index.html) is

It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

OK. Now I've edited the default page /usr/share/nginx/html/index.html. But I
only can see the chages in the guest browser. So, no changes are visible,
when access the defalt vhost via IP from the host system.

Furthermore I created a simple PHP file index.php


and added it to the default vhost directory (/usr/share/nginx/html). When I
access it from the guest (localhost/index.php), it works fine. But when I
try it from the host, only a message

File not found.

is displayed.

I only have this issue with the default vhost. The oher two are working

What can be the cause? What do I do wrong?


Posted at Nginx Forum:,235411,235411#msg-235411

More information about the nginx mailing list