• Discussion
  • How to disable access logs, but still have error logs enabled?

I tried to disable access logs for a website, but my error logs are then disabled aswell. How to disable ONLY access logs?

    aaPanel_Kern

    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.

      aaPanel_Kern

      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

        aaP_erikator

        Thank you for providing that detailed information about disabling access logs while keeping error logs active.

        For Apache:

        1. Edit the Apache config file (e.g. apache2.conf, httpd.conf)
        2. Comment out or remove the CustomLog directive
        3. Keep the ErrorLog directive active
        4. Restart Apache

        For Nginx:

        1. Edit the Nginx config file (e.g. /etc/nginx/nginx.conf)
        2. Comment out or remove the access_log directive in the server block
        3. Keep the error_log directive active
        4. Restart Nginx

        If issues persist:

        • Check file permissions
        • Look for conflicting configs
        • Verify log file paths