• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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