You can configure subdomains of the same zone on the same Salesforce B2C Commerce instance, or on different instances of different realms of the same retailer.
Which Salesforce Commerce Product Do I Have?
For example, configure www.shop.com on the Production instance, test.shop.com on the Development instance, and eu.shop.com on the Production instance of the EU realm.
To validate a hostname and cut over DNS with the CDN Zones API instead, see CDN Zones in the developer documentation.
-
Click App Launcher
, and then select .
The Additional Hostnames slider opens from the right side of the page. This slider shows the names of zones and hostnames (subdomains) that you can add to the Embedded CDN Settings page. If the list is long, search for specific zones and hostnames using the search field. If you don’t see the hostname you want, verify that it exists in the site's Aliases section under . -
Select a hostname in the list and click Add Hostname.
Business Manager adds the hostname to the Embedded CDN Settings page, as a child of its zone.
After you add an SSL certificate and activate the hostname, complete the remaining steps.
-
Test inbound communication through the embedded CDN by resolving your custom
hostname to the IP address of the embedded CDN locally (modify /etc/hosts).
Example: 104.12.34.7 shop.abcd.comThe CDN domain name resolves to different IP addresses over time. Using a fixed IP address is acceptable for testing purposes only.
-
In your DNS server configuration, point the DNS record of your hostname to the
embedded CDN.
Create a CNAME record. The value of the record appears in Business Manager.
Legacy zones only: permission rules. To prevent damage to the production experience, users on a non-Production instance can't modify subdomains configured on other instances. In addition, users can't modify certificates on a zone with at least one Production instance as origin. However, they can add hostnames to existing zones with Production instance origins. Users on Production instances can modify all CDN settings, even if another Production instance of the same retailer is impacted.