• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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