I got the answer for this - actually this is by design: The nginx service[0] in RHEL/CentOS 8 uses PrivateTmp=true directive so it doesn't see the /tmp/nginx directory you just created. You could either add a service dropin with ExecStartPre= which will do the log directory setup or drop PrivateTmp=true to make this work.by iapdog - How to...
I happened to find this annoying issue - not sure this is a systemctl issue or an nginx problem. The issue is reproducible on amazonlinux2 and centos8 (I tried both on AWS EC2) steps to re-produce: in /etc/nginx/nginx.conf change the line from: access_log /var/log/nginx/access.log main; to: access_log /tmp/bbb/access.log main; and mkdir /var/bbb/ set the ownershipby iapdog - How to...