You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by k5...@postpro.net on 2012/06/08 01:38:34 UTC

[users@httpd] Using 'SetEnvIf' IP address matches in IPv6 space - do I match on 'short' or 'expanded' address?

In my httpd conf, I set a var for use in matching conditions.

In IPv4 space this is clear.

	SetEnvIf X-FORWARDED-FOR "^192\.168\.1\.(.*)"  okOFFICE=$1
	SetEnvIf X-FORWARDED-FOR "^127\.0\.0\.1(.*)"   okLOCALHOST=$1

I want to add the analogue for IPv6 addresses.

Which do I match against?  The 'shortened' or 'fully expanded' IPv6
addresses?

E.g.,

		"::1"
	vs
		"0:0:0:0:0:0:0:1"

and,

		"2001:490:1cd7:5b10::1"

	vs

		"2001:490:1cd7:5b10:0:0:0:1"

Do I only need to match the short versions?  Or both/all?

Kar

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