Bug 41857 - [PATCH]mod_setenvif patch
Summary: [PATCH]mod_setenvif patch
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_setenvif (show other bugs)
Version: 2.2.4
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2007-03-16 00:57 UTC by KIKUCHI Kousuke
Modified: 2012-02-26 16:42 UTC (History)
0 users



Attachments
PatchAvailable (8.04 KB, patch)
2007-03-16 01:01 UTC, KIKUCHI Kousuke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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