Ahhhh ... finally ... something new! nginx.
Don't run nginx myself but ...
what does nginx -t show? Might look at the online help for other switches.
The one showed is like apache's control command which checks config file for any syntax issues and there's switch for checking virtual server settings as well.
Surely nginx has such switches that might prove to be informative.
https://linux.die.net/man/8/nginx
-t' Don't run, just test the configuration file. The nginx checks configuration for correct syntax and then tries to open files referred in configuration.
That man page shows that nginx can be compiled for debugging as well.
set the debug level of the error_log:
- error_log /path/to/log debug;
It is also possible to enable the debugging for some IP address:
events {
- debug_connection 127.0.0.1;
}
might be better than the requested debugging output from config.php of the troubled moodle install.Since we still don't now what Linux distro ... seLinux must not be in play.
Might bookmark/favorite this:
https://www.nginx.com/resources/wiki/?_ga=1.20166270.799570568.1490758030
The official wiki for nginx.
'spirit of sharing', Ken