Part 1: How To Set Up and Validate DNS CNAME On Your Site.

Part 2: How To Verify DNS CNAME Is Active.

Part 3: How To Configure SSL Support On Your Site

Part 4: How To Add & Verify a Custom Domain On Your LeadQuizzes Website Account.

Part 5: How To Add Custom Content URL Path On Your LeadQuizzes Content.

Part 1: How To Set Up and Validate DNS CNAME On Your Site.

Before setting up DSN CNAME on your site, copy the exact Target/Value shown in your Custom subdomain settings in your LeadQuizzes account under Sites & Organisations.

How To Setup DNS CNAME In Cpanel.

1. Log in to your site Cpanel and look for DNS.

2. Select add CNAME record and in the popup that appears. Under the Name, give your subdomain a name, while under CNAME, you type in the exact Target/Value as shown in your custom subdomain settings in LeadQuizzes, and click "Add A CNAME Record."

How To Setup DNS CNAME In Cloudflare.

1. Log in to your Cloudflare and select the site you want to set up DNS for.

2. Next, select the DNS tab on the top menu and click on Add Record.

3. Next, give your subdomain a name under the Name field. Under Target, type in the exact Target/Value shown in your custom subdomain settings in LeadQuizzes, under TTL, select Auto, and under Proxy Status, select DNS only if you have an HTTP site. In contrast, if you have an HTTPS site, select Proxied. Finally, click Save.

Part 2: How To Verify DNS CNAME Is Active.

To verify if your DNS CNAME is active if the Proxy Status is set to DNS Only, go to this URL https://dnslookup.online/cname.html. On the webpage, type in your subdomain URL, and click CNAME Lookup. If your DNS is active, you will get a result, and if not, you will get a failed notification request. DNS CNAME may sometimes take up to 12+ hours to become active.

Note: This method would not work if the Proxy Status is set to PROXIED (mostly for HTTPS sites). In this case, you can verify if your DNS CNAME is active with your web browser by opening your custom domain link in a new tab and checking if it shows the LeadQuizzes Deployed Content app.

Part 3: How To Configure SSL Support On Your Site

SSL is the most widely used way to secure the connection between your server and your browser. It ensures that the connection between the server and browser is encrypted and safe and appears as HTTPS protocol in the web browser.

After setting up the CNAME record, you are required to enable SSL (HTTPS) to get a secure connection (due to the redirection from your site to LeadQuizzes). If you try to access the URL without enabling SSL, you will get a notification informing you that your connection is not secure.

We will show you how to configure SSL with CloudFlare and Amazon Web Services (using CloudFront service). However, this can also be achieved using CDN services on Azure and Google Cloud Platform or your own SSL certificate via a reverse proxy such as Nginx / Apache / Caddy and others.

How To Configure SSL Support On Cloudflare

1. Check if you have provisioned a certificate with Cloudflare for your domain by going to SSL / TLS - > Edge Certificates. If you haven’t, provide CloudFlare’s Universal certificate for your domain.

2. The next step is to force SSL connections over your entire domain. Go to SSL / TLS - > Overview and force SSL/TLS encryption mode to Full. Be sure not to choose Full (Strict) as this will result in an invalid SSL certificate on your website.

3. Next, create a page (redirection) rule that will forward your URL always to use an SSL certificate. Go to Rules - > Page Rules, click on Create Page Rule, and for URL enter your address but with HTTP:// (for example http://test.haloshisha.com) and as settings rule select Always use HTTPS.

Your domain is now fully protected and set up with a Cloudflare SSL certificate.

How To Configure SSL Support On Amazon Web Services

Setting up SSL redirection with AWS is somewhat more complex than Cloudflare, so we advise that this setup is only done by customers that already have a presence on AWS public cloud and are confident with their cloud skills.

To set up CloudFront SSL redirection for your website, you need the following.

Once your domain is set up with Route53, you have provisioned SSL certificate via AWS Certificate Manager, and you have added CNAME record to LeadQuizzes URL; you can proceed to set up CloudFront SSL redirection

1. In AWS console, search for CloudFront service, and in CloudFront console, click on the Create Distribution button

2. On the next screen, click on Get Started.

3. The next page is divided into three separate areas - Origin Settings, Default Cache Behaviour Settings, and Distribution Settings.

  • Origin Settings: Follow the settings in the screenshot below. Please note that the Origin Domain Name should match Target/Value as shown in your custom subdomain settings in LeadQuizzes.



  • Default Cache Behaviour Settings: Follow the settings in the screenshot below.



  • Distribution Settings: Follow the settings in the screenshot below. Please note that the Alternate Domain Names should point to your site URL, e.g., test.haloshisha.com. Also, don’t forget to select the certificate you have.



After all three sections have been configured, click on Create Distribution in the bottom right corner, and in 5-10 minutes, your CloudFront distribution should be configured.

Part 4: How To Add & Verify a Custom Domain On Your LeadQuizzes Website Account.

1. Navigate to your LeadQuizzes account dashboard, click "Settings" in the top right-hand corner & select "Sites & Organisation" from the Settings menu.

2. On this page, select the Custom Domain tab to start setting up your custom subdomain.

3. Next, enter the custom subdomain you created when setting up DNS CNAME on your site and click ''Setup subdomain.''

4. Your Custom Subdomain should now say "Active." You can edit your Custom Subdomain by clicking the Edit button or remove your Custom Subdomain at any time by clicking the Remove button.

Note: The Custom Subdomain would only say Active if you have already set up the CNAME on your DNS.

Part 5: How To Add Custom Content URL Path On Your LeadQuizzes Content.

1. To add a custom content URL path to your LeadQuizzes content, you first have to select the content you would like to set up a custom domain for & click the "Edit" icon on it.

2. Once you are in the Content Builder, click "Share" on the top menu.

3. On this page, Custom Domain URL will be auto-populated with a path which you can copy and use without further changes. I.e., test.haloshisha.com/lp/NbkYJdWpxg

4. You also have the option to add a custom path to this Custom Domain URL field, which you can save, copy and use. Ie. test.haloshisha.com/skinquiz

5. Finally, to use the base URL/Subdomain for this path, click on the checkbox, save and copy the URL. i.e test.haloshisha.com/

Did this answer your question?