You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/02/24 16:57:57 UTC
DO NOT REPLY [Bug 44478] New: - Add SetEnvIfIP to set env vars depneding on ip subnet matches
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<https://issues.apache.org/bugzilla/show_bug.cgi?id=44478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
Summary: Add SetEnvIfIP to set env vars depneding on ip subnet
matches
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: All
OS/Version: All
Status: NEW
Keywords: PatchAvailable
Severity: enhancement
Priority: P2
Component: mod_setenvif
AssignedTo: bugs@httpd.apache.org
ReportedBy: rainer.jung@kippdata.de
mod_authz_host allows Allow/Deny to depend on the presence of an environment
variable. Although it would be nice to set appropriate env vars once and then
use the env var in various places inside Allow/Deny, this doesn't really work in
practise, because there is no clean way of setting them w.r.t. IP addresses.
In simple network cases, people use string patterns and setenvif. When more
complex netmasks are involved, string matches against IP addresses don't work well.
The attached patch includes SetEnvIfIP that allows all notations, that
Allow/Deny provide (ful IP, partial IP, network/netmask, network/nnn CIDR).
I provide a patch against trunk (r420983, which is actual today) and one against
2.2 (r421103).
IP matches are allowed against remote_addr and also server_addr (because the
latter was simple, but maybe not really useful), also there are domain name
matches, which are allowed against everything that mod_setenvf accepts.
If there is some interest, I would see, how to also provide this feature as a
RewriteCond fpr mod_rewrite.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44478] Add SetEnvIfIP to set env vars depneding on
ip subnet matches
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
Stefan Fritsch <sf...@sfritsch.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FixedInTrunk
--- Comment #4 from Stefan Fritsch <sf...@sfritsch.de> 2010-11-28 16:17:46 EST ---
The new SetEnvIfExpr directive allows to match by subnet/netmask.
See r1039900
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44478] Add SetEnvIfIP to set env vars depneding on
ip subnet matches
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
Stefan Fritsch <sf...@sfritsch.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Stefan Fritsch <sf...@sfritsch.de> 2012-02-26 16:48:17 UTC ---
2.4.1 is released, closing
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44478] - Add SetEnvIfIP to set env vars depneding on ip subnet matches
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<https://issues.apache.org/bugzilla/show_bug.cgi?id=44478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
------- Additional Comments From rainer.jung@kippdata.de 2008-02-24 07:58 -------
Created an attachment (id=21584)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21584&action=view)
Add SetEnvIfIP address match to mod_setenvif.c in trunk
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44478] - Add SetEnvIfIP to set env vars depneding on ip subnet matches
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<https://issues.apache.org/bugzilla/show_bug.cgi?id=44478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
------- Additional Comments From rainer.jung@kippdata.de 2008-02-24 07:59 -------
Created an attachment (id=21585)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21585&action=view)
Add SetEnvIfIP address match to mod_setenvif.c for 2.2.x
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 44478] - Add SetEnvIfIP to set env vars depneding on ip subnet matches
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<https://issues.apache.org/bugzilla/show_bug.cgi?id=44478>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44478
------- Additional Comments From rainer.jung@kippdata.de 2008-02-24 08:00 -------
The patch is related to patch
http://issues.apache.org/bugzilla/show_bug.cgi?id=41857
but includes slightly more functionality.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org