Mixing ports with a NameVirtualHost address is not supported

postcd

Well-Known Member
Oct 22, 2010
717
19
68
On my server (which is not overloaded) started suddenly (i made no server modification) problem where "time to first byte" of all hosted sites (even .html pages & particular images) is like 10 seconds (and if the html page contains an image, its time to load is another like 10 seconds). The WHM is loading fast, but Apache status page in it is also delayed like 10 seconds. I tried to restart mysql and httpd, but httpd shows:

Code:
VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
can i safely ignore this error?

here some parts of the "httpd -S" output:

Code:
VirtualHost configuration:
127.0.0.1:80           127.0.0.1 (/usr/local/apache/conf/httpd.conf:275)
127.0.0.1:443          my.hostname.com (/usr/local/apache/conf/httpd.conf:43399)
serveriphere:443       is a NameVirtualHost

         port 443 namevhost my.hostname.com (/usr/local/apache/conf/httpd.conf:43399)
serveriphere:80        is a NameVirtualHost

wildcard NameVirtualHosts and _default_ servers:
*:*                    is a NameVirtualHost
         default server (/usr/local/apache/conf/httpd.conf:302)
         port * namevhost my.hostname.com (/usr/local/apache/conf/httpd.conf:302)
         port 443 namevhost my.hostname.com (/usr/local/apache/conf/httpd.conf:43399)
Syntax OK
Apache/2.2.*
EA 3.*

even locally (on webserver) launched command "curl -v MyServerPublicIPHere" takes 10 seconds to return output. Unsure where this delay is caused.
 
Last edited:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
Houston
cPanel Access Level
DataCenter Provider

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Thank You, while i got error "VirtualHost *:443 -- mixing * ports and non-* ports"

i executed: # grep "*:443" /usr/local/apache/conf/httpd.conf
<VirtualHost 127.0.0.1:443 ServerIPISHere:443 *:443>

and this line is under line: "# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES."

this virtualhost is for the server hostname... so should i remove the *:443 even it says i should not edit it? (After removing it, httpd restart without error)

Also please what do you suggest regarding the time to first byte issue described?
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,126
667
263
Houston
cPanel Access Level
DataCenter Provider
Hi @postcd

First I would suggest updating Apache, you're running an unmaintained version of the software which is leaving you vulnerable to any number of security risks, you're also not getting the benefit of updates. This issue with the mixed vhosts isn't present in Apache 2.4 - is there a specific reason/s you're not moving to a supported version?

Thanks!