• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

How do I prevent Apache to log image in log file?

M

mewth

Guest
At first, sorry to my poor English.

Then, I want to prevent apache to log image in log file.
I already see the manual and web pages below:
http://forum.plesk.com/printthread.php?threadid=12836
http://forum.sw-soft.com/printthread.php?threadid=17630

And I do the following thigs.
1.Create a file named vhost.conf
in /home/httpd/vhosts/<my-domain>/conf/
and
in /home/httpd/vhosts/<my-domain>/subdomains/<my-subdomain>/conf/

2.Write this only in the each vhost.conf file;
SetEnvIf Request_URI \.gif image-request
SetEnvIf Request_URI \.jpg image-request
SetEnvIf Request_URI \.png image-request
CustomLog /home/httpd/vhosts/<my-domain>/statistics/logs/access_log combined env=!image-request

3.Run this;
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<my-domain>
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<my-subdomain>.<my-domain>

4.Restart apache

But apache is logging image in the log files.
Any ideas why it does'nt work?
I need your help.

mewth
 
Back
Top