Prevent (stop) Apache from logging specific AJAX / XmlHttpRequests? Prevent (stop) Apache from logging specific AJAX / XmlHttpRequests? apache apache

Prevent (stop) Apache from logging specific AJAX / XmlHttpRequests?


No problem. Just look at the example from Apache's documentation (a place where you might want to look, if you happen to have an apache-related question in the future).For example:

# Mark requests for the AJAX callSetEnvIf Request_URI "^/myajaxscript\.php.*$" dontlogSetEnvIf Request_URI "^/myotherajaxscript\.php$" dontlog# Log what remainsCustomLog logs/access_log common env=!dontlog