On Sunday, 19 February 2017 10:52:37 GMT Ralph Corderoy wrote: > > > sudo -i -u nginx > > > > > > (Replace nginx with the actual user name) > > > > The user is root. Is that normal? > > No, the user isn't root. The user and group on /var/www/html is > root:root; that's normal. But Jon meant the user that nginx runs as > when processing incoming HTTP requests, e.g. `www-data'. This is done > so an error in nginx, or in code you ask it to run, has limited access > rights when it goes haywire, or is exploited by an attacker.
Hmm. I think I understand. I wouldn't have known how to identify the user that nginx runs as other than looking in top. That said 'root'. > > My recollection is that I only changed those names on the Pi (compared > > to the version on my server), to make typing easier, > > You are aware of Tab completion in the shell? `cd Aud<Tab>' completes > to Audio_Guide. :-) Of course. It wasn't in the shell that I was having difficulty; it was typing the full path into the browser on the phone. (I'm just working on a landing page, with buttons to link to the underlying functions.) > > but clearly having the Directory names as Audio_Guide and Kiddies_Quiz > > instead of Guide and Quiz was what was needed. Why would that be? > > You earlier wrote: > > 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 > > nginx is taking the path part of the URL, from the `/' after the domain > name to the optional query parameters starting with a `?', and trying to > access that tacked on to /var/www/html. If the URL's path is > Audio_Guide then the directory has to match. This is why I suggested a > simple top-level now.txt as a known thing under /var/www/html. Or am I > misunderstanding the question? To clarify; I can surf to the Audio Guide or the Kiddies Quiz, by typing in the links I gave you to my own webserver and it works. On the Raspberry Pi they didn't, even when the code (meaning directory names) was identical to that on my domain. When I shortened the directory names (and changed the Audio Guide html page to index.html), everything worked. So the question is why is it OK on my website and not on the Pi? -- Terry Coles -- 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

