httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Ivanov <>
Subject Re: [users@httpd] mod_lua and subprocess_env
Date Mon, 27 Feb 2017 09:58:38 GMT
On Fri, Feb 24, 2017 at 10:58 PM, Andrei Ivanov <>

> On Feb 24, 2017 22:54, "Yann Ylavic" <> wrote:
> On Fri, Feb 24, 2017 at 6:50 PM, Andrei Ivanov <>
> wrote:
> >
> > I've managed to apply your patch and rebuild Apache and now I have:
> > Header set Client-IP "expr=%{REMOTE_ADDR}"
> > Header set Client-SAN "expr=%{PeerExtList:}"
> > Header set Client-DN "expr=%{SSL_CLIENT_S_DN}"
> Could you please add:
>   Header set Expr "'IP Address:'.%{REMOTE_ADDR} -in
> PeerExtList('')"
> ?
> If it outputed "Expr: IP Addressfalse" that'd be issue with operators'
> precedence.
> I'll try on my side, but you may beat me to it since you have the
> environment...
> Ugh, it's my work environment, I'll be able to access it only on Monday.
Tried now, I've adapted your suggestion a bit as it doesn't seem correct:

Header set Expr "expr='IP Address:'.%{REMOTE_ADDR} -in

This results in:
Expr: 'IP Address:'. -in email:<redacted1>,
email:<redacted2>, IP Address:, IP Address:0:0:0:0:0:0:0:1, IP
Address:, IP Address:FE80:0:0:0:6D03:4CE1:C15F:5A44

As far as I understand, it doesn't perform the concatenation properly.
I've tried
Header set Expr "expr='%{IP Address:'.%{REMOTE_ADDR}} -in

But I get a parse error at startup:
Can't parse value expression : syntax error, unexpected T_ERROR, expecting
T_VAR_END or ':': Invalid character in variable name ' '

But I think mod_headers has some different way of interpreting expressions,
because this doesn't work:

Header set matched false
<If "'IP Address:'.%{REMOTE_ADDR} -in %{PeerExtList:}">
    Header set matched true

Cannot parse condition clause: syntax error, unexpected T_VAR_BEGIN,
expecting T_ID or '{

View raw message