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 2023/12/30 05:05:20 UTC

[Bug 68429] New: SERVER_ADDR missing from expressions

https://bz.apache.org/bugzilla/show_bug.cgi?id=68429

            Bug ID: 68429
           Summary: SERVER_ADDR missing from expressions
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: msaladna@apisnetworks.com
  Target Milestone: ---

Created attachment 39496
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=39496&action=edit
SERVER_ADDR patch

SERVER_NAME, SERVER_PORT, and SERVER_ADMIN are supported in expression usage.
The following patch adds SERVER_ADDR as well. My use case is to check if
REMOTE_ADDR matches SERVER_ADDR, in which case it's a local lookup to set an
env flag.

-- 
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


[Bug 68429] SERVER_ADDR missing from expressions

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68429

--- Comment #1 from Michael Osipov <mi...@apache.org> ---
(In reply to msaladna from comment #0)
> Created attachment 39496 [details]
> SERVER_ADDR patch
> 
> SERVER_NAME, SERVER_PORT, and SERVER_ADMIN are supported in expression
> usage. The following patch adds SERVER_ADDR as well. My use case is to check
> if REMOTE_ADDR matches SERVER_ADDR, in which case it's a local lookup to set
> an env flag.

I have the exact same case. Will try to push it.

-- 
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


[Bug 68429] SERVER_ADDR missing from expressions

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68429

Michael Osipov <mi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michaelo@apache.org
                 OS|                            |All

-- 
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


[Bug 68429] SERVER_ADDR missing from expressions

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=68429

--- Comment #2 from Michael Osipov <mi...@apache.org> ---
Your problem can be solved with "Require local".

-- 
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