'require' directive result

Now that I've managed to configure my 'require' directive, I have a
requirement to log some details to syslog in case the request is not

<Location />
Require expr "<some expression>"
// if expression is false, log details about the request and maybe
the SSL certificate to syslog

I've searched around, but I can't find how I could do that.

Please help.

Thank you


Re: 'require' directive result

By Luca Toscano at 06/21/2017 - 11:24

Hi Andrei,

2017-06-16 15:23 GMT+02:00 Andrei Ivanov <andrei. ... at gmail dot com>:

sorry for what might be trivial, but have you tried <If expr> etc..</If> ?

<a href="" title=""></a>


Re: 'require' directive result

By Andrei Ivanov at 06/21/2017 - 16:44

On Wed, Jun 21, 2017 at 6:24 PM, Luca Toscano <toscano. ... at gmail dot com>

Aaah, you got me thinking...
I'll try Tomorrow with SetEnvIfExpr and CustomLog :)

Thank you

Re: 'require' directive result

By Andrei Ivanov at 06/20/2017 - 04:42

Anybody? Can this be done in some way?

On Fri, Jun 16, 2017 at 4:23 PM, Andrei Ivanov <andrei. ... at gmail dot com>

Re: Re: 'require' directive result

By Marat Khalili at 06/20/2017 - 07:33

My 2.4.18 already logs AH01797 (client denied by server configuration)
to a configured ErrorLog in this case. I don't use syslog myself so I
cannot help you with this part, but quick google search shows it is
possible in various ways.