Skip to main content

SSL certifficate conflict - all https domains redirected to primary https domain

Comments

10 comments

  • cPanelMichael
    Hello :) This is the intended behavior. You will need to make a different installed certificate the primary certificate via the "Make Primary" action under the "Manage SSL Hosts" option in WHM if you want a different certificate to appear for Virtual Hosts without a certificate installed. Thank you.
    0
  • postcd
    Thanks, but You probably did not read properly what i need, i dont need different domain to appear, i want https just dont work, dont redirect to other domain..
    0
  • cPanelMichael
    [quote="postcd, post: 1730852">Thanks, but You probably did not read properly what i need, i dont need different domain to appear, i want https just dont work, dont redirect to other domain..
    Right, that is not possible unless you move all of your accounts with SSL to their own private IP addresses. Thank you.
    0
  • postcd
    why it is made to behave like this some non-ssl domain redirecting to another when accesswed by https? sounds to me like a wrong behavior, can this be programmed proper way without redirecting all non ssl domains to main ssl domain?
    0
  • cPanelMichael
    It's because you have installed a SSL certificate on a shared IP address. Thus, a VirtualHost for port 443 exists for that IP address. This is how Apache works, as opposed to a special functionality that cPanel instituted. Thank you.
    0
  • postcd
    Thank for explanation, so there is no way to make apache not redirect all domains to primary SSL domain? Or any way to not make any Primary SSL, i mean i think it redirects to domain which has primary SSL, so to not maky any domain SSL primary? :D
    0
  • cPanelMichael
    You could install a self-signed certificate on each domain name on that IP address, move accounts with SSL certificates to their own IP address, or make a different SSL host the primary certificate for the IP address. Thank you.
    0
  • postcd
    Thanks for advice, i see, for one domain new self signed certifficate can be generated from "WHM / SSL/TLS" section (Google: WHM how to generate self signed certiffficate) that fixed the redirection problem for that one domain but there is too much domans (200+) to do this manually, some bulk self signed certifficate generator for all non ssl domains probably dont exist.. > make a different SSL host the primary certificate can be good to be some domain or URL that tells visitor that there is no site at https:// or the domain/site which redirects (using .htaccess) visitor back from where he came, only to HTTP:// [QUOTE]Shared SSL Certificate Currently, there are no shared SSL certificates.
    0
  • Sikes
    Just make a domain/subdomain with self-signed sertificate, make it primary and redirect to $_SERVER['HTTP_HOST"> in index.php. Or better with .htaccess: RewriteRule ^
    0
  • tienngang
    In hosting of Primary domain, add following below: RewriteCond %{HTTPS} =on RewriteCond %{HTTP_HOST} !^primarydomain.com RewriteRule ^(.*)$
    0

Please sign in to leave a comment.