I have an Apache running as HTTP server and also a SVN server which is delivered by the same Apache machine.
Configured with something like
<Location /repos>
DAV svn
SVNParentPath /srv/repos
</Location>
How can I prevent Apache to log all the SVN "PROPFIND" and "OPTIONS" access requests?
I thought there wasn't a way to do this, but turns out there might be. The CustomLog directive can look for the existence of an environment variable to decide to log the request or not. Combine that with mod_rewrite to set that environment variable, and I think you have what you're looking for.
I haven't tested this. From what I'm reading in the docs though, this should work.
This is similar to the Rewrite method, but just uses the SetEnvIf directives to mark OPTIONS and PROPFIND requests in the relevant vhost, then we add the env rule to the access log to exclude them from the access log.
We went this route for a continuous build system that did excessive polling. We're actually working on changing things around to use SVN post-commit hooks to notify the build system of changes.
You should be able to add:
To whatever vhost container you're using. If you're not using a vhost for SVN, you may have a difficult time doing this.