Nginx, by default, logs to /var/spool/nginx
. However, this can be changed per vhost:
services.nginx.virtualhosts.<name>.extraConfig = ''
error_log syslog:server=unix:/dev/log;
access_log syslog:server=unix:/dev/log combined_host;
'';
Perhaps we should update the default nginx config to do this, too?
A similar problem is capturing stderr from PHP-FPM. I think this is all that is required:
services.phpfpm.pools.<name> = {
extraConfig = ''
catch_workers_output = yes
'';