Bug 59938 - Expose remote host port as an expression
Summary: Expose remote host port as an expression
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: FixedInTrunk, PatchAvailable
Depends on:
Blocks:
 
Reported: 2016-08-03 15:59 UTC by Hank Ibell
Modified: 2017-03-02 11:24 UTC (History)
1 user (show)



Attachments
Potential patch (1.27 KB, patch)
2016-08-03 16:01 UTC, Hank Ibell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Ibell 2016-08-03 15:59:34 UTC
There was a question on IRC a while ago asking if there was a way to get the remote host's port in the httpd.conf file.

This can be achieved by adding a request variable to the expression parser. The variable REMOTE_PORT was added which returns the port information from the client address.
Comment 1 Hank Ibell 2016-08-03 16:01:53 UTC
Created attachment 34101 [details]
Potential patch
Comment 2 Eric Covener 2016-12-29 18:31:42 UTC
Thanks for the enhancement, added in r1776459 and will propose for backport shortly.