Bug 64181

Summary: UseCanonicalPhysicalPort
Product: Apache httpd-2 Reporter: mark <wellmanadmin>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.29   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description mark 2020-02-27 02:45:03 UTC

I use haproxy to wrap multiple back end hosts with ssl for easy ssl updates. Apache2 virtual hosts seem to be responding with the server port specified in the VirtualHost directive, regardless of UseCanonicalName/UseCanonicalPhysicalPort and the FQDN specified in the Servername directive. This issue seems similar to 63504; however, I cannot use the "work around" specified by setting the ServerName with the default port, as it should set SERVER_PORT.

<VirtualHost *:8085>
	SSLEngine On
	SSLCertificateFile <example>
	SSLCertificateKeyFile <example>
	UseCanonicalName on
	UseCanonicalPhysicalPort on
        ServerName https://example1.example2:443
        DocumentRoot /var/www/wordpress/

Browser redirects to https://example1.example2:8085 regardless of values specified for either UseCanonicalName or UseCanonicalPhysicalPort.