Welcome! Log In Create A New Profile

Advanced

issue with default vhost

January 22, 2013 09:19AM
Hello!

There is an Nginx instance on one of my VMs (192.168.56.101) 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 displayed:

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

<?php
phpinfo();
?>

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 fine.

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

thx
Subject Author Posted

issue with default vhost

automatix January 22, 2013 09:19AM

Re: issue with default vhost

automatix January 22, 2013 10:09AM

[resolved] Re: issue with default vhost

automatix January 23, 2013 04:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready