Git Product home page Git Product logo

Comments (5)

ThisWebHost avatar ThisWebHost commented on June 20, 2024

To fix this (we confirmed this) should be relatively trivial;

In function "sync_vhosts" simply set the first access_log path to:

/usr/local/apache/domlogs/$DOMAIN

Then remove the remaining references (further down) to

access_log off

from engintron.

fevangelou avatar fevangelou commented on June 20, 2024

Here's the thing. Access logs are deliberately off for static files ONLY for 2 reasons: a) access logs become more meaningful and you don't get flooded with missing favicon.ico entries or other missing files and b) not having Nginx record access for such files makes Nginx operate a bit faster.

Besides, Nginx has its own access log which has nothing to do with Apache. Moreover, if we patch the access_log path to use Apache's (inside domlogs) then both Apache and Nginx will conflict with each other because they will be accessing and trying to write the same files!

from engintron.

ThisWebHost avatar ThisWebHost commented on June 20, 2024

EDIT: Removed responses. I'll just fork my own repo with fixes included to save the discussion and argument. Thanks for your time.

from engintron.

fevangelou avatar fevangelou commented on June 20, 2024

First off, Nginx is not a drop in replacement for Apache. Apache is still working but behind Nginx. So you should not be messing with Apache's logs imho. Nginx, like I said, has its own logs under /var/log/nginx - the error log specifically can be viewed via cPanel, from within Engintron.

Secondly, I'm definitely not confusing access logs with error logs. By disabling access logs for static files you are not hogging your access and error logs with entries of missing static files (which most of the times you won't care about). Just go ahead and request http://engintron.com/somefavicon.ico - this will never be recorded in that server's access or error logs. And this is a good thing for cPanel. You know why? Because the default /usr and /var partitions created by 99,99% of all cPanel installations are extremely small in size and this can lead to them filling up pretty quickly on busy sites and thus to an unstable server.

I did notice that the access_log directive was entirely off for each vhost and I've fixed that. But there is no point in logging static files.

from engintron.

ThisWebHost avatar ThisWebHost commented on June 20, 2024

Closed to save time and argument. I'll fork my own repo with these changes and fixes included.

from engintron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.