Bug 41857

Summary: [PATCH]mod_setenvif patch
Product: Apache httpd-2 Reporter: KIKUCHI Kousuke <kikuchi>
Component: mod_setenvifAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: normal Keywords: FixedInTrunk
Priority: P2    
Version: 2.2.4   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: PatchAvailable

Description KIKUCHI Kousuke 2007-03-16 00:57:59 UTC
Hi all

I created a mod_setenvif.c patch that is available for ip range(see below).

IPRangeMatch 192.168.38.128/25 in
IPRangeMatch 192.168.157.0/25 in
IPRangeMatch 192.168.151.128/26 in

setenv module is only regex base.
this patch is a little convenience if you want to set envs by ip range.

----
kousuke
Comment 1 KIKUCHI Kousuke 2007-03-16 01:01:06 UTC
Created attachment 19718 [details]
PatchAvailable
Comment 2 Stefan Fritsch 2010-11-28 16:17:08 UTC
The new SetEnvIfExpr directive allows to match by subnet/netmask.
See r1039900
Comment 3 Stefan Fritsch 2012-02-26 16:42:46 UTC
fixed in 2.4.1