SetEnvIf Request_URI "/cgi-bin/.+\.cgi" logthis=1 CustomLog /path-to/access_log_temp combined env=logthis