Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mixing ports with a NameVirtualHost address is not supported

Discussion in 'EasyApache' started by postcd, Feb 26, 2019.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    704
    Likes Received:
    16
    Trophy Points:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 postcd, Feb 26, 2019
    Last edited: Feb 26, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,260
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    704
    Likes Received:
    16
    Trophy Points:
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,260
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice