httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k5...@postpro.net
Subject [users@httpd] Using 'SetEnvIf' IP address matches in IPv6 space - do I match on 'short' or 'expanded' address?
Date Thu, 07 Jun 2012 23:38:34 GMT
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


Mime
View raw message