Mixing ports with a NameVirtualHost address is not supported
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:
can i safely ignore this error? here some parts of the "httpd -S" output:
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.
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:
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.
-
HI @postcd I need to point out first that Apache 2.2 has been EoL for a considerable amount of time (December 2017) and I'd strongly urge you to update to a maintained/supported version (Apache 2.4.x) An explanation of this error can be found here: How can I solve the apache2 httpd error "mixing * ports and non-* ports with a NameVirtualHost address is not supported" 0 -
Thank You, while i got error "VirtualHost *:443 -- mixing * ports and non-* ports" i executed: # grep "*:443" /usr/local/apache/conf/httpd.conf 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? 0 -
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! 0
Please sign in to leave a comment.
Comments
3 comments