How can I generate seperate logs for different HTML URL paths?

后端 未结 2 1791
渐次进展
渐次进展 2021-01-24 23:47

I\'m trying to breakout the logging of my website based on directory access, so I\'m seeking an elaboration to this answer (or this answer too): In which file do place the sugge

2条回答
  •  广开言路
    2021-01-24 23:49

    Head Slap!

    Regular expression error:

    SetEnvIf Request_URI "^/download/.+$" download_access
    

    should be:

    SetEnvIf Request_URI "^/download/.*$" download_access
    

    Note the * versus the +.

提交回复
热议问题