You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Holger Schramm <li...@schramm.by> on 2017/11/21 11:36:14 UTC

[users@httpd] Apache 2.4, ipmatch and ipv6

Dear all,

I am struggling with a SetEnvIf Directive and ipv6:

<If "-R fe80::216:3eff:feaf:525b/64">
  SetEnvIf showindex=1
</If>

Error message:

Cannot parse condition clause: syntax error, unexpected ':', expecting
$end: -ipmatch requires subnet/netmask as constant argument

It seems that ipmatch cannot handle ipv6 adresses? Is this true?

My version:

Server version: Apache/2.4.10 (Debian)
Server built:   Feb 24 2017 18:40:28

-- 
Holger

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4, ipmatch and ipv6

Posted by Daniel <df...@gmail.com>.
try to quote the ipv6 address too not just the whole expression.

2017-11-21 12:36 GMT+01:00 Holger Schramm <li...@schramm.by>:
> Dear all,
>
> I am struggling with a SetEnvIf Directive and ipv6:
>
> <If "-R fe80::216:3eff:feaf:525b/64">
>   SetEnvIf showindex=1
> </If>
>
> Error message:
>
> Cannot parse condition clause: syntax error, unexpected ':', expecting
> $end: -ipmatch requires subnet/netmask as constant argument
>
> It seems that ipmatch cannot handle ipv6 adresses? Is this true?
>
> My version:
>
> Server version: Apache/2.4.10 (Debian)
> Server built:   Feb 24 2017 18:40:28
>
> --
> Holger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>



-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org