Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Apache Access Log vs Nginx Access Log

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
9 posts • Page 1 of 1
RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Apache Access Log vs Nginx Access Log

Post by RevengeFNF » Mon Jul 20, 2015 10:23 am

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?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Apache Access Log vs Nginx Access Log

Post by skurudo » Mon Jul 20, 2015 11:36 am

nginx access and apache error, I think
Top

RevengeFNF
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

Post by RevengeFNF » Mon Jul 20, 2015 11:55 am

Ok,so i will disable the apache access log and enable the Nginx one.
Thank you.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Apache Access Log vs Nginx Access Log

Post by skurudo » Mon Jul 20, 2015 1:02 pm

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?
Top

RevengeFNF
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

Post by RevengeFNF » Mon Jul 20, 2015 1:05 pm

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 ;)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Apache Access Log vs Nginx Access Log

Post by skurudo » Mon Jul 20, 2015 7:31 pm

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
Top

RevengeFNF
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

Post by RevengeFNF » Mon Jul 20, 2015 8:18 pm

I will do that. Many Thanks ;)
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Apache Access Log vs Nginx Access Log

Post by pandabb » Thu Aug 20, 2015 11:55 am

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
}
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Apache Access Log vs Nginx Access Log

Post by skurudo » Thu Aug 20, 2015 1:17 pm

Catalog - > /etc/logrotate.d/
Top


Locked
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password