Apache Access Log vs Nginx Access Log
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Apache Access Log vs Nginx Access Log
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?
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
nginx access and apache error, I think
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Apache Access Log vs Nginx Access Log
Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
Thank you.
Re: Apache Access Log vs Nginx Access Log
No prob.RevengeFNF wrote:Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
But if you want just save space, there is a way to make less logs. Wanna know?
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Apache Access Log vs Nginx Access Log
Yes, i wanna know ;)skurudo wrote:No prob.RevengeFNF wrote:Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
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
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:
and rotate faster ;-)
10 megabyte:
Code: Select all
size 10M
Code: Select all
rotate 14
-
- Posts: 92
- Joined: Sat Aug 02, 2014 6:50 pm
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Apache Access Log vs Nginx Access Log
I will do that. Many Thanks ;)
Re: Apache Access Log vs Nginx Access Log
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?
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
Catalog - > /etc/logrotate.d/