• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question tell apache to not log certain requests

Maris

Basic Pleskian
Hello, how to tell apache not to log certain requests in log files ?
Could you please provide step by step instrucitions?

Things i've already tried:
1) added into .htaccess two lines:
AllowOverride FileInfo
SetEnvIf Request_URI ".*" dontlog

2) then there should be added something like this env=!dontlog at the end of CustomLog line in some .conf file in vhosts. I think I pretty added in every possible .conf file which have CustomLog line in /var/vhosts/system, even created two files vhost.conf and vhost_ssl.conf with these lines.. but at this point i am not sure i know what i am doing..

Then restarted httpd, and it still logs every request.

Would someone please walk me step by step with things i have to do? Thanks
 
I had similar question, maybe it helps to reduce de disk IO and load average, domain logs are writing twice, one on /var/www/vhosts/system/domain/log and also in /var/www/vhosts/domain/log maybe it can help if logs only POST requests
 
Problem currently is that .htaccess is not for some reason able to set an env variable. Somewhere I've red that it requires mod_env module in apache. But seems that this module is included in Plesk by default, though I am not sure - it is in one file that apache httpd.conf is including, but then in Plesk - this module is not visible from Tools&Settings -> Apache Web Server.

If all the rules you drastically put in /var/vhost/system httpd.conf file - till some magic moment when Plesk is overwriting the files - not logging kind of worked for me. But ideally I would love to do it with .htaccess

Can somebody enlighten us?
 
Back
Top