10

I am working on a site and the client wishes users of the non-admin part of the site to be completely anonymous.

I don't know very much about apache, but is there some way to disable logging via the .htaccess file? (so that it can be portable with the site and not reliant on specific server settings)

I've found instructions for the httpd.conf, but I don't know how to replicate commenting out lines in a .htaccess file

1 Answer 1

10

Answer is big NO. You cannot control Apache logging from .htaccess unfortunately.

Sign up to request clarification or add additional context in comments.

6 Comments

That is great to know. The type of answer that tends not to come up through google
I was frantically trying to enable/disable RewriteLog for some misfiring rule but realized soon that no logging controls are allowed in .htaccess and probably for security reasons since .htaccess owners don't have write access to Apache log directory.
is it possible to disable logging in the httpd.conf for only specific directories?
Yes I think that is possible, check this answer: serverfault.com/questions/119953/…
Check out the section on Conditional logging, httpd.apache.org/docs/2.4/logs.html
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.