httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Ivanov <andrei.iva...@gmail.com>
Subject Re: [users@httpd] 'require' directive result
Date Wed, 21 Jun 2017 20:44:06 GMT
On Wed, Jun 21, 2017 at 6:24 PM, Luca Toscano <toscano.luca@gmail.com>
wrote:

> Hi Andrei,
>
> 2017-06-16 15:23 GMT+02:00 Andrei Ivanov <andrei.ivanov@gmail.com>:
>
>> Hi,
>> 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
>> authorized.
>>
>> <Location />
>>       Require expr "<some expression>"
>>       // if expression is false, log details about the request and maybe
>> the SSL certificate to syslog
>> </Location>
>>
>> I've searched around, but I can't find how I could do that.
>>
>
> sorry for what might be trivial, but have you tried <If expr> etc..</If>
?
>
> https://httpd.apache.org/docs/2.4/mod/core.html#if
>
> Luca
>

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

Thank you

Mime
View raw message