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!

Default vhost for port 443?

Discussion in 'EasyApache' started by Erik Ellsinger, Jan 14, 2018.

  1. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I can see in the httpd.conf that port 80 has a default vhost created by WHM but port 443 doesn't have one on my server. So when you try to go to hostname:443 you get on of my addon domains.

    Is there maybe a setting in WHM that I have missed where you can set a default vhost for port 443? Or can I do it in some other way?

    Actually thought WHM already fixed this as default. Didn't discover it until my host certificate expired because my nagios check monitored the addon domain so I had no idea it had expired. The check used to work as intended so this must have changed in some WHM/cPanel update.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,872
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    A SSL Vhost for any domain will be created when you install SSL on that domain. Try installing a SSL on your domain and then check the port 443 for your response..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I already have a SSL-certificate installed on that domain and I've had that since before this problem started. I tried to reinstall the certificate but then I just come to another one of my domains when I go to the server hostname using SSL.
     
  4. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    @Erik Ellsinger, are any custom apache templates in use?
    Code:
    # find /var/cpanel/templates/apache2* -type f -name \*.local
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    No, that command give me no result.
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    We provide instructions on how to configure the default SSL certificate for virtual hosts without their own SSL certificates at:

    SSL FAQ and Troubleshooting - Documentation - cPanel Documentation.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Erik Ellsinger

    Erik Ellsinger Well-Known Member

    Joined:
    Sep 25, 2015
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Solved it by running the following:

    /scripts/upcp --force
    /scripts/rebuildhttpdconf
    /scripts/restartsrv_httpd
     
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