I have the development machine set up to use tmpfs for /var/log. Given that, at every boot the content is blank and gradually filled with whatever processes create while logging their guts.
The problem is (according to my interpretation of error messages): nginx is very reluctant to just create it's own log directory (/var/log/nginx in this case), so during start it keeps throwing the error at me:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2012/05/08 21:42:35 [emerg] 2368#0: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
As soon as I create the dir everything works just fine. Is there a way to tell nginx to (at least attempt to) create the log dir?