Welcome! Log In Create A New Profile

Advanced

Getting started

James Read
December 10, 2019 06:52PM
I edited the config file as follows:

http {
server {
location / {
root /www;
}
}
....
}

I then reloaded the config file with sudo nginx -s reload. I created a test
file at /www/index.html then when I tried to load the page in my browser I
still got the default Welcome to nginx! page.

What am I doing wrong?

I also tried editing the page at /usr/share/nginx/html/index.html None of
my edits seem to have any effect. When I tried to load the page in my
browser I still got the default Welcome to nginx! page.

What's going on?

thanks,
James
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Getting started

James Read December 10, 2019 06:52PM

Re: Getting started

Francis Daly December 11, 2019 03:32PM

Re: Getting started

James Read December 11, 2019 03:56PM

Re: Getting started

Francis Daly December 12, 2019 11:26AM

Re: Getting started

James Read December 12, 2019 11:36AM

Re: Getting started

Francis Daly December 12, 2019 11:44AM

Re: Getting started

James Read December 12, 2019 11:54AM

Re: Getting started

Francis Daly December 12, 2019 12:04PM

Re: Getting started

James Read December 12, 2019 01:18PM

Re: Getting started

Francis Daly December 13, 2019 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready