Page 1 of 1

Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 10:23 am
by RevengeFNF
Hello,

By default, Vestacp comes with Apache Access Log enabled and Nginx Access Log disabled.
There is no logic in have both enabled, so this setting seems ok.

My question is, which one is more reliable? Apache or Nginx Access Log?

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 11:36 am
by skurudo
nginx access and apache error, I think

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 11:55 am
by RevengeFNF
Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 1:02 pm
by skurudo
RevengeFNF wrote:Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
No prob.
But if you want just save space, there is a way to make less logs. Wanna know?

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 1:05 pm
by RevengeFNF
skurudo wrote:
RevengeFNF wrote:Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
No prob.
But if you want just save space, there is a way to make less logs. Wanna know?
Yes, i wanna know ;)

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 7:31 pm
by skurudo
Much better way is to use logrotate and limit size of your logs.. look at your /etc/logrotate.d/ folder and edit files to add limits

10 megabyte:

Code: Select all

size 10M
and rotate faster ;-)

Code: Select all

rotate 14

Re: Apache Access Log vs Nginx Access Log

Posted: Mon Jul 20, 2015 8:18 pm
by RevengeFNF
I will do that. Many Thanks ;)

Re: Apache Access Log vs Nginx Access Log

Posted: Thu Aug 20, 2015 11:55 am
by pandabb
Hi there sir,

where do i add size and rotate in the example log file below. Also can you tell me what does rorate 14 means?

GNU nano 2.0.9 File: named Modified

/var/named/data/named.run {
missingok
create 0644 named named
postrotate
/sbin/service named reload 2> /dev/null > /dev/null || true
endscript
}

Re: Apache Access Log vs Nginx Access Log

Posted: Thu Aug 20, 2015 1:17 pm
by skurudo
Catalog - > /etc/logrotate.d/