NGINX access logging with subdomain

Posted by user353877 on Server Fault See other posts from Server Fault or by user353877
Published on 2012-11-25T08:29:11Z Indexed on 2012/11/25 11:07 UTC
Read the original article Hit count: 137

We are trying to log requests made through an nginx load balancer.

When we make requests to our server on a subdomain (api.blah.com), the request does not show up in the access logs

However, requests made directly to blah.com do show up in the access logs.

CONFIGURATION INFO
We have a DNS record that creates a CNAME for the subdomain 'api'

TRIED SO FAR
We have tried looking in nginx.conf for exclusions (or anything that would be telling it to not log)

We have tried adding server entries with the subdomain specifically and telling those to log

but nothing seems to make a difference

© Server Fault or respective owner

Related posts about nginx

Related posts about load-balancing