• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How excluding common requests from access_logs and proxy_access_log?

Azurel

Silver Pleskian
Hey.

I want not log access to static files. So I set this lines under "Web Server Settings for domain.tld" in the textbox for "Additional directives for HTTP":

SetEnvIf Request_URI "\.(jpg|xml|png|gif|ico|js|css|swf|js?.|css?.)$" DontLog
CustomLog /var/www/vhosts/system/domain.com/logs/access_log combined Env=!DontLog

Source: http://2bits.com/drupal-performance/reducing-size-and-io-load-apaches-web-server-log-files.html

But that not help. How I can set this in plesk 12.x for a single domain for both, apache (access_log) and nginx (proxy_access_log)? Thanks! ;)

Can anybody help here? I want reduce the I/O load.
 
I search still for a solution. ;)
For decreasing io load you can enable option “Serve static files directly by nginx”. Static files will not be handled and logged by Apache in this case.
 
Thanks for this hint, but in which way this decreasing io load? Its only switch from apache to nginx, or? I want exclude it in both (proxy_)access_log ;)
 
Back
Top