Description of problem: If you use: # /etc/nginx/include.d/log_debug.conf access_log /var/log/nginx/${host}-access.log; error_log /var/log/nginx/${host}-error.log debug; Your access log will interpolate ${host}; while not interpolating it on the error log. You end up with a file called: ${host}-error.log Version-Release number of selected component (if applicable): nginx-1.4.1-1.fc19.x86_64 How reproducible: Set up some configuration and add this line inside server {} for the error log to use the host variable: access_log /var/log/nginx/${host}-access.log; error_log /var/log/nginx/${host}-error.log debug; Try making it err (generate errors). Actual results: You will end with a proper access file; called, for example: example.tld-access.log and the ${host}-error.log file. Expected results: You should see example.tld-access.log and example.tld-error.log Additional info: IMHO, this should go upstream. Just wanted some confirmation,
Sorry for the extremely late reply. This isn't a bug. The upstream documentation does not state that the error_log directive supports variables: http://nginx.org/en/docs/ngx_core_module.html#error_log Whereas the access_log is documented to support variables: http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log
*** Bug 996006 has been marked as a duplicate of this bug. ***
As reference; this external bug: https://mail.google.com/mail/u/0/?shva=1#inbox/140bca562f7f7690
(In reply to Renich Bon Ciric from comment #3) > As reference; this external bug: > https://mail.google.com/mail/u/0/?shva=1#inbox/140bca562f7f7690 I don't think you meant to give a link to your gmail inbox?
(In reply to Jamie Nguyen from comment #4) > (In reply to Renich Bon Ciric from comment #3) > > As reference; this external bug: > > https://mail.google.com/mail/u/0/?shva=1#inbox/140bca562f7f7690 > > I don't think you meant to give a link to your gmail inbox? errr... sorry; http://trac.nginx.org/nginx/ticket/404
Thanks for chasing this up upstream, Renich. Just posting the upstream response here for posterity: Maxim Dounin wrote: > The error_log directive doesn't support variables, > and it's highly unlikely it will - as error log is > something needed to log errors, and errors may > happen, in particular, while interpolating variables.