Skip to main content

How to allow website to be accessed using a wildcard instead of www

Comments

7 comments

  • GrahamWebb
    I have done some more digging with Google and it seems I have to add the wildcard entry to the 'serveralias:' line of the Apache config file for the site. I am going to try this but we use AutoSSL for the site so is there a way to get the AutoSSL to give us a wildcard certificate or will be have to add a wildcard certificate manually?
    0
  • ffeingol
    You can do this through cPanel. Just go to Domains and then click the "Create a New Domain" button. In the domain field you can enter *.mydomain.tld (using your domain name). You then need to decide what you want for the document root. cPanel's Let's Encrypt will create a wildcard cert by default. I don't know what the cPanel provider does for AutoSSL.
    0
  • GrahamWebb
    You can do this through cPanel. Just go to Domains and then click the "Create a New Domain" button. In the domain field you can enter *.mydomain.tld (using your domain name). You then need to decide what you want for the document root. cPanel's Let's Encrypt will create a wildcard cert by default. I don't know what the cPanel provider does for AutoSSL.

    Thanks ffeingol but does that apply if we are not using the cpanel to manage our DNS? Our DNS is manage separately using DigitalOcean?
    0
  • GrahamWebb
    You can do this through cPanel. Just go to Domains and then click the "Create a New Domain" button. In the domain field you can enter *.mydomain.tld (using your domain name). You then need to decide what you want for the document root. cPanel's Let's Encrypt will create a wildcard cert by default. I don't know what the cPanel provider does for AutoSSL.

    Thanks ffeingol, that has worked, we are currently using Sectigo Cpanel AutoSSL but that has not given me a wildcard certificate saying that the domain is excluded but half way there now.
    0
  • ffeingol
    What I posted would take care of cPanel/Apache setup. You'd have to see if DigitalOcean DNS supports a wildcard.
    0
  • GrahamWebb
    What I posted would take care of cPanel/Apache setup. You'd have to see if DigitalOcean DNS supports a wildcard.

    We have the DNS part of it working as anything.website.company.com resolves to the ip address, its just Cpanel Sectigo now are not issuing a wildcard certificate. I think I have found the issue now, we need to purchase a wildcard certificate if using Cpanel AutoSSL through Sectigo, or perhaps try LetsEncrypt. No certificate available. The configured AutoSSL provider does not support explicit wildcard domains. You must purchase a certificate to secure this domain.
    0
  • ffeingol
    In looking at the Sectigo provider, it does not support Wildcard, only Let's Encrypt does that.
    0

Please sign in to leave a comment.