Bug 59938

Summary: Expose remote host port as an expression
Product: Apache httpd-2 Reporter: Hank Ibell <hwibell>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: enhancement CC: szg0000
Priority: P2 Keywords: FixedInTrunk, PatchAvailable
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Potential patch

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.