Nginx in default could never return 200 OK

by mjusui   Last Updated July 04, 2018 15:02 PM

I want to know the best practice for Nginx setup in the case bellow.

I created the environment of nginx(1.15.1) on ubuntu(18.04) on docker(18.03.1-ce) on lxc(2.21 security.nesting=true) on linuxmint(18.3)

But the permission of / is 700 in default so nginx always results to return 403 (nginx root is set to /home/www/data).

How should I set up my nginx and file permissions ?

Related Questions

Restarting nginx in a Docker container

Updated June 26, 2017 12:02 PM

Can't install nginx on Docker

Updated August 05, 2017 19:02 PM

unable to access docker nginx on 18.04 LTS

Updated July 30, 2018 18:02 PM

Nginx autostart on Docker (ubuntu:trusty image)

Updated September 30, 2015 14:01 PM

Best practice multi-tenant webapp Ubuntu 16

Updated August 18, 2017 09:02 AM