Nginx stop logging
Sergey A. Osokin
osa at freebsd.org.ru
Sun Sep 4 13:51:06 UTC 2022
Hi Vincent,
hope you're doing well.
On Sun, Sep 04, 2022 at 01:22:20PM +0200, Vincent M. wrote:
> Hello,
>
> The logs are working fine but once a day, nginx stop loging access and
> then the file log file is empty.
> So every day I have to restart my nginx server in order to get the logs.
> It's on a Rocky Linux 9 with Nginx 1.20.1
> Never seen that before, what should I check?
The official linux packages [1] contain the logrotate(8) configuration
file, so that part of the job can be done automagically.
Also, while I'm here I'd recommend to upgrade installed nginx to
the more recent stable version, 1.22.0.
Please let me know if you have any questions.
Thank you.
References:
1. https://nginx.org/en/linux_packages.html#RHEL-CentOS
--
Sergey A. Osokin
More information about the nginx
mailing list