The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

site bound to http only, not to https

Discussion in 'General Discussion' started by Pputnik, May 20, 2016.

Tags:
  1. Pputnik

    Pputnik Member

    Joined:
    May 20, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello,

    I've added a site, at the moment it is the only website on that IP. After
    /scripts/rebuildhttpdconf I see the domain is bound to port 80 only, but not to https. As the result, when I open https://newsite.domain2.net i see default cpanel page

    Code:
    172.16.135.110:80  is a NameVirtualHost
      default server 172.16.135.110 (/usr/local/apache/conf/httpd.conf:277)
      port 80 namevhost 172.16.135.110 (/usr/local/apache/conf/httpd.conf:277)
      port 80 namevhost newsite.domain2.net (/usr/local/apache/conf/httpd.conf:311)
      alias www.newsite.domain2.net
      port 80 namevhost dev2.mydomain.com (/usr/local/apache/conf/httpd.conf:5444)
      wild alias cpanel.*
      wild alias whm.*
      wild alias webmail.*
      wild alias webdisk.*
      wild alias cpcalendars.*
      wild alias cpcontacts.*
    172.16.135.110:443  dev2.mydomain.com (/usr/local/apache/conf/httpd.conf:5494)
    where dev2.mydomain.com is the server name, newsite.domain2.net is the site I've just added.
    So, I want to have newsite.domain2.net connected to 172.16.135.110:443
    The IP is not dedicated, I already removed it from /etc/domainips

    Tried this How do convert a dedicated ip on a shared ip? but no luck.

    I'm the root on the server, there is another IP.
    Code:
    /etc/redhat-release:CentOS release 6.7 (Final)
    /usr/local/cpanel/version:11.56.0.18
    /var/cpanel/envtype:kvm
    CPANEL=release
    Server version: Apache/2.4.18 (Unix)
    Server built:   Apr 28 2016 08:43:03
    Cpanel::Easy::Apache v3.32.12 rev9999
    
    Please help.
     
  2. sarath8372

    sarath8372 Active Member

    Joined:
    Jan 6, 2015
    Messages:
    35
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Kochi, India
    cPanel Access Level:
    Root Administrator
    Hello,

    Did you install SSL certificate on the domain? You should install SSL certificate (self or CA signed) on the domain to make it listen on port 443 (https).
     
  3. Pputnik

    Pputnik Member

    Joined:
    May 20, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Yessss! this is exactly what I forgot. Thank you!
     
  4. sarath8372

    sarath8372 Active Member

    Joined:
    Jan 6, 2015
    Messages:
    35
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Kochi, India
    cPanel Access Level:
    Root Administrator
    Happy to Help!! :)
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page