Hi Terry. It's probably file permissions. Check what user the nginx server
runs as, and make sure they have access to the files. They will need rx
permission at least to every directory down to them from / as well, I
believe.

To check, switch to root then do:

 sudo -i -u nginx

(Replace nginx with the actual user name)

Then make sure you can read one of the files.

If you can't get a shell that way, try:

sudo -u nginx bash


On 18 Feb 2017 5:14 pm, "Terry Coles" <[email protected]> wrote:

> Hi,
>
> Back in August we had some discussion about setting up a webserver to run
> in a walled
> garden (literally :-) ) at the Wimborne Model Town.  As a proof of
> concept, I created two
> simple pages (Audio Guide and Kiddies Quiz, see below) and put them onto a
> Raspberry Pi
> running nginx.  At the time they worked perfectly when I connected the Pi
> to a Wireless AP
> mounted on a pole in the corner of the site.  (I was able to use both
> functions from my
> phone.)
>
> Since then, we've pretty much concentrated on the bells project and I've
> only picked this
> up again in the last few days.  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).
>
> Quite a few things have changed since then and I confess that I never
> tested the original
> SD Card before I copied it and went through a full upgrade + installation
> of the code for
> the UPS Pico that we are using.
>
> 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.  Worse, I've just plugged
> the original SD
> Card into my old Pi 2 (not the Pi 3 we are using for the WMT) and I'm
> getting the same
> problem.
>
> The only other thing that has changed since then is the router (I'm not
> even trying to
> access the Pi from an independent AP yet), but since I can get to the
> nginx landing page, I
> can't see that that is relevant.
>
> Any ideas what could be going on here?
>
> The latest pages are working on my website at:
>
> http://hadrian-way.co.uk/Audio_Guide/audio_guide.html
>
> and
>
> http://hadrian-way.co.uk/Kiddies_Quiz/index.html[1]
>
> --
>
>
>
>                 Terry Coles
>
> --------
> [1] http://hadrian-way.co.uk/Kiddies_Quiz/index.html
> --
> 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
-- 
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

Reply via email to