Thanks for response,
> Setup log rotation depending on size of logs or daily rotation.
If I use log rotation would I still have access to all access data logs
where I moved?
>Instead of randomly restarting – do a config check and only restart if the
config is valid (should also validate the log
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
Hi I would like to implement if condition on access and error log. Prior to
nginx restart I want nginx to look for first log path location eg.
/externalhdd/log/nginx/example.com_access.log, if log doesn't exist use
second path which is /var/log/nginx/example.com_access.log I have given
like my exa
Hello
I have small pdf search site searches pdf over internet when somebody search
URL look like www.mypdfsearchwebsite.com/pdf/nginx.html with (html
extension)
google index this address with html and without html version so there are
duplicate record on google index each search lies without htm