Comments (5)
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.
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.
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.
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.
Closed to save time and argument. I'll fork my own repo with these changes and fixes included.
from engintron.
Related Issues (20)
- Ask for supporting RHEL 9 HOT 1
- AlmaLinux-Blank Page
- How to log Awstats IPV6 countries taffic
- Appreciation HOT 2
- Solution!!! Welcome to nginx on CloudLinux (Default Page Issue) For CL8 or CL9 AL9
- Ability to customize the Apache SSL port HOT 1
- Is Enigtron 2.2 compatible with cPanel 110.0x? HOT 6
- Nginx crashes when placing custom rules HOT 1
- How to block users from accessing our website through its IP address (the servers IP address)?
- nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
- help for websocket support HOT 1
- Problem timeout on my server
- Further development plans HOT 2
- Engintron is suspending Cpanel account
- URGENT - Remove Tracking Code / Spyware from the software HOT 2
- Remove tracking code to external source HOT 1
- blocking/error-avoidance wish HOT 1
- location of vhosts created by engintron HOT 1
- no "charset_map" between the charsets "iso-8859-1" and "utf-8"
- nginx 1.25+ [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engintron.