Multiple access_log directives in different contexts
lists at ruby-forum.com
Sat Jan 17 19:11:32 MSK 2009
I have a traffic log directive in my http block:
# Traffic log
log_format traffic $time_local | $server_name | $request_length |
access_log /var/log/nginx/traffic.log traffic;
This works just fine except for virtual hosts that have a custom
access_log directive defined.
Traffic is not showing for these domains.
error_log /var/www/example.com/data/logs/nginx.error.log error;
How can I use global traffic log and custom access log together?
Posted via http://www.ruby-forum.com/.
More information about the nginx