Skip to main content

Mixing ports with a NameVirtualHost address is not supported

Comments

3 comments

  • cPanelLauren
    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
  • postcd
    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
  • cPanelLauren
    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.