I tried to disable access logs for a website, but my error logs are then disabled aswell. How to disable ONLY access logs?
How to disable access logs, but still have error logs enabled?
Hello, what is your aapanel version? What is a web service?
Check the website configuration file
- Edited
I use newest 7.13
website configuration - site directory - disable write access log
It disables both
#ErrorLog "/www/wwwlogs/domainxyz-error_log"
#CustomLog "/www/wwwlogs/domainxyz-access_log" combined
if i enable, it enables also both
So is there separate access log and error log buttons (not just manually in configuration)? If not, you could make that to site directory as new options.
aaP_erikator #ErrorLog "/www/wwwlogs/domainxyz-error_log"
Is it possible to remove the # sign and reload apache?
if i enable manually in config file, then yes. But what i mean is BUTTON site access is for ERROR LOG and ACCESS LOG. If it is possible, what about make separate ERROR LOG and ACCESS LOG buttons
Thank you for your feedback, it has been recorded
It is recommended that you manually annotate first
Thank you for providing that detailed information about disabling access logs while keeping error logs active.
For Apache:
- Edit the Apache config file (e.g. apache2.conf, httpd.conf)
- Comment out or remove the CustomLog directive
- Keep the ErrorLog directive active
- Restart Apache
For Nginx:
- Edit the Nginx config file (e.g. /etc/nginx/nginx.conf)
- Comment out or remove the access_log directive in the server block
- Keep the error_log directive active
- Restart Nginx
If issues persist:
- Check file permissions
- Look for conflicting configs
- Verify log file paths