Hi Terry,
> The problem is, that I can't get access to the two pages anymore ;-( I
> can connect to the nginx landing page at the root of the server, but
> anything else gives me an error 403 (do not have permission to view
> the page).
...
> The problem seems to come down to the fact that I can no longer access
> the content that I've copied into the html directory at /var/www.
If you stop nginx, e.g. `sudo systemctl stop nginx', does the browser
now fail to connect? You might have to Shift-Reload to persuade it to
try again. That will suggest you are talking to the correct server.
Is nginx writing to log files, e.g. /var/log/nginx/*.log? Anything
useful at the end of those? You can watch them with `tail -F *.log'
during your attempts. Hit Enter a few times to get some blank lines so
you can see what's new.
Does your nginx set-up have /etc/nginx/sites-{available,enabled}? Are
symlinks in the latter pointing at configuration files in the former?
Might just be `default' unless you've added others.
What's the user, group, and permissions on /var/www, e.g. `ls -ld
/var/www'?
Create a simple file in there.
sudo sh -c 'date >/var/www/now.txt'
sudo chmod 444 /var/www/now.txt
And then attempt to fetch that with curl(1) so the complicted browser
isn't involved. What `hostname' are you using in the URL?
curl -sS http://127.1/now.txt # On the Pi.
curl -sS http://FIXME/now.txt # Elsewhere.
Cheers, Ralph.
--
Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
New thread: mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR