implementation of access.log with if condition

lifeisjustabout nginx-forum at forum.nginx.org
Mon Jul 31 11:08:20 UTC 2017


Thanks for the response. The reason why I want to implement this is because
I have dedicated server and thanks to nginx everything is work perfectly so
I don't need to check server everyday. I don't want to locate logs on ssd
main (hardrive /var/log/nginx/) which is obviously smaller hard disk than my
external sata hdd (/externalhdd/log/nginx/). I am afraid if something
happens to external hard drive time to time, I still want my website to
operate after restart because every week server restart by itself due to
some limitation of some programs. I guess it will give me error message
nginx couldn't found access.log if external hard disk dies prior to restart
nginx. I want to avoid this problem.

thanks.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275761,275763#msg-275763



More information about the nginx mailing list