www/nginx: log littering

Acheron Blackflow acheron.blackflow at gmail.com
Wed Dec 10 11:13:31 UTC 2014


Hello list,

any particular reason why default nginx logging is two files directly under
/var/log, ie. /var/log/nginx-access.log and /var/log/nginx-error.log?

Shouldn't nginx logging be nicely confined to the /var/log/nginx/
subdirectory? Even more so since nginx touches the default error log
(--error-log-path compile time switch) regardless of the error_log
directive in nginx.conf which then makes this impossible to keep clean by
configuration alone.

It's not just the inconvenience of tab completion being broken for
/var/log/nginx with the /var/log/nginx-error.log always present. I am
assuming most sysadmins would configure nginx logging under a dedicated
directory anyway, primarily to keep the rotated files cleanly confined and
not all over the parent /var/log/.

I'd file that as a bug but seeing that nobody else complained (at least le
Google is failing to return relevant ticket or ml post) I was wondering why
that is?


More information about the freebsd-ports mailing list