• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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