Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Configure an eCDN

Learning Objectives

After completing this unit, you’ll be able to:

  • List the steps you need to take to configure an eCDN on Salesforce B2C commerce.
  • Explain how site URL alias files relate to instances.
  • Describe how B2C Commerce works with a zone.
  • Explain how the eCDN CNAME alias works.
  • Explain why you’d update a zone certificate.

What’s the Plan?

The embedded CDN (eCDN) is a geographically distributed network of proxy servers that support B2C Commerce storefronts. Linda Rosenberg, Cloud Kicks admin, knows that configuring a B2C Commerce eCDN improves availability and performance, ultimately enhancing the ability to scale her sites.

She likes that the B2C Commerce eCDN takes security a step further by providing an eCDN web application firewall (WAF), which is all about security standards compliance. See the Check Your Firewall for Security Compliance unit, in the Salesforce B2C Commerce Storefront Security Strategies Trailhead module, for details.

Linda creates a task list so she knows exactly what she has to do to implement B2C Commerce eCDN.

Step Task

1

Configure a hostname alias.

2

Create a zone.

3

Add a SSL certificate to an eCDN zone and configure domain name system (DNS) mapping.

4

Update an eCDN zone's certificate.

5

Configure a zone.

6

Add hostnames (subdomains).

Configure a Hostname Alias

To create short, meaningful URLs for external search engines to index, Linda needs a hostname alias. She must configure at least one hostname alias that’s the current hostname on which the instance is running. She can also create a simpler alias that reflects her store or brand name. Putting a simple Page URL in the alias list, such as www.cloudkicks.com, enables shoppers to get to the storefront without typing in the full Salesforce B2C Commerce URL, such as this.

http://www.mystore.com/on/demandware.store/Sites-MYS-Site/default

Here’s how to create a hostname alias.

  1. Open Business Manager.
  2. Select Site|Merchant Tools | SEO Aliases.
  3. In the text area, create a set of hostname alias rules such as these.
     { "__version": "1",
"settings": {
   "http-host": "www.cloudkicks.com",
   "https-host": "www.cloudkicks.com"
} }

IIn Business Manager, configure the hostname aliases.

Here are some tips.

  • To ensure that your rules are valid JSON, test them against a debugging tool.
  • Remove comments from your mapping files and use colons (:) instead of equal signs (=) to separate property and value.
  • Site URL alias files are instance-specific. Because each instance has its own alias file, these files are not included in data replication. This prevents you from overwriting these settings on production with the staging configuration.

4. When you are satisfied that your alias field is valid, copy it into the editor and click Apply.

See the Salesforce B2C Commerce Hostname Aliases Trailhead module for details.

Create a Zone

B2C Commerce uses the hostname alias files for the development and production instances across all realms to derive the zone names. For example, if the hostname alias file for Linda’s production instance contains an entry for www.cloudkicks.com, B2C Commerce creates the cloudkicks.com zone.

Linda always registers a domain name with her DNS provider before she creates a zone. That’s because, once she creates a zone, she can’t delete it in Business Manager. She has to contact customer support to remove it.

If you have an existing Cloudflare account, B2C Commerce can take ownership of your storefront hostname in the Commerce Cloud Cloudflare account. B2C Commerce can also maintain all other hostnames in your Cloudflare account. All new zones created by default are proxy zones and do not require support to help create them.

Here’s how to create zones.

  1. Select Administration | Sites | Embedded CDN Settings.
  2. Click Add Hostnames.
  3. For each hostname that you want to add, click Create Zone.

In Business Manager create an eCDN zone.

Hostnames are automatically added after the zone is created, configured and the zone status is set to verified.

  • If you're creating a new zone, click the Refresh Status link to refresh the status of the individual zone while creation is in progress.In Business Manager, check the status of hostname validation.
  • Click Verify Configuration to check the status of hostname validation. Verification can take up to 24 hours.In Business Manager, check the status of hostname validation.

Add an SSL Certificate

Next, Linda adds SSL certificates to her hostnames for the zones and maps her origin endpoints. Here’s what she needs to consider.

  • When directing root domains to the eCDN CNAME alias, you must use an external service to redirect from the root domain to the subdomain.
    The DNS request for comment (RFC) does not support pointing root domains directly to B2C Commerce. The DNS is the hierarchical and distributed naming system used to identify computers reachable through the internet or other internet protocol networks. DNS best practices are documented in dozens of different RFC documents.
  • When setting up redirects, make sure you set them up for both HTTP and HTTPS.
  • To permanently serve traffic from the root domain (cloudkicks.com) instead of a subdomain (www.cloudkicks.com), use a DNS-level solution to direct root domains to the eCDN CNAME alias.

Here’s how to add SSL certificates to your hostnames and map DNS values from B2C Commerce to your DNS provider account:

  1. Select Administration | Sites | Embedded CDN Settings.
  2. Certificates or Settingsfor the zone that you’re adding a certificate to.
    • On the Crypto tab, select the zone from the list.
    • Click Add Certificate. In Business Manager, upload a certificate to eCDN.
    • Enter the SSL certificate and private key information from your certificate provider.
    • Select the hostname to which you want to assign the SSL certificate.
    • Click Upload Certificate.
    • Copy the displayed verification text into your own DNS portal.
    • To check the status of hostname validation, click Verify HostName. This can take up to six hours.
  3. Once the hostname is active, create a canonical name (CNAME) record that points traffic, by SSL for SaaS V2, to the new zone.
  4. Configure DNS mapping for the zone, with Cloudflare, for example.
    • Log into your DNS provider account.
    • Search for your zone and select it from the list.
    • On the DNS tab, locate the hostname that you want to map.
    • Replace all text after “is an alias of” with the DNS CNAME from Business Manager.
    • In the Status column, click the cloud until it shows a gray cloud with the tooltip “DNS Only.”

If you already have the same root domain with your DNS provider in a separate account, you must point the DNS to the new zone and not the standard or root zone. This proves that you want traffic to come to the new zone instead of the standard or root zone.

Update an Zone Certificate

When your SSL certificate expires, or you have to update the hostnames assigned to an SSL certificate, here’s how you update the zone certificate.

  1. Select Administration | Sites | Embedded CDN Settings.
  2. Select a zone from the hostnames list and click Settings | Add Certificate.In Business Manager, add a certificate.
  3. On the Crypto tab, select a zone from the list.
  4. Click the Rotating icon on the certificate you want to update.
  5. Paste the certificate and private key information from your Certificate Authority provider.
  6. Click Update Certificate.

To update which hostnames are assigned to a certificate in a proxy zone, add a certificate, add the hostnames correctly, then delete the old certificate. For availability reasons, we recommend adding all hostnames to a certificate before deleting the old certificate. You don’t want to cause downtime.

Next Steps

In this unit, you learned how to configure an eCDN from configuring a hostname alias to updating an eCDN zone’s certificate. Next, configure a zone and add a subdomain.

Resources

Condividi il tuo feedback su Trailhead dalla Guida di Salesforce.

Conoscere la tua esperienza su Trailhead è importante per noi. Ora puoi accedere al modulo per l'invio di feedback in qualsiasi momento dal sito della Guida di Salesforce.

Scopri di più Continua a condividere il tuo feedback