When nginx start, it creates log file "access.log" with 0 size. But no log are written in it. error.log works fine.
nginx.conf:
http {
access_log /usr/local/webserver/nginx/logs/access.log combined;
....
}
The logs file is:
-rw-r--r-- 1 root root 0 Mar 4 00:54 access.log
-rw-r--r-- 1 root root 3903 Mar 4 00:54 error.log
I am totally confused. @_@
Is it a permission issue?
However, in the later part of nginx.conf, in the server {} section, the access_log works! Why http {} section not working?