To use Fastly on Staging and Production environments (enterprise cluster, Magento Commerce (Cloud)), you must create and point the corresponding CNAME aliases or domain names to one of the following:
- Fastly CNAME hostnames (prod.magentocloud.map.fastly.net)
- all four Fastly IP addresses using A records (based on your DNS provider settings)
- Create the subdomain(s) (as CNAME's or A records) for your Staging environment.
The usual naming convention is: staging.<your_domain_name>.com. The domain names must match the ones specified in your Onboarding Spreadsheet.
- Point the subdomains to Fastly CNAME hostname (prod.magentocloud.map.fastly.net) or to all four Fastly IP addresses using A records (based on your DNS provider settings).
When you are ready to go live, point your live domain name to the Fastly CNAME hostname or IP addresses (via A records) the same way as for the Staging environment.
Recommendation: add your special Fastly Production domain names to Fastly
We recommend requesting that the special Fastly domain names for your Production environment are added to Fastly as well (prod.<your_domain_name>.com). Point them to Fastly the same way as for the Staging environment.
By doing so, you will be able to test your store on the Production environment with Fastly enabled before going live, especially if you are migrating and do not want to use the current (live) domain name for testing purposes on Production.
Existing Staging domain
If you are already using the same Staging name in your previous Magento development site, create a DNS record for your Staging domain as a CNAME that points to the prod.magentocloud.map.fastly.net hostname.
To create a hostname that allows you to connect directly to the cluster and bypass Fastly, point your CNAME record to the c.<project_ID>.ent.magento.cloud hostname. Make sure to mention this in your Onboarding Spreadsheet.
Domain names in your Onboarding Spreadsheet
You can find the DNS information in your Onboarding Spreadsheet on the DNSSSLCDN tab.
The tab includes the following info:
- your requested domain names, Fastly and origin (with *.c.<your_client_id>.ent.magento.cloud)
- all Fastly IP addresses and CNAME alias
If you don't have access to the Onboarding Spreadsheet, ask your Magento Commerce account owner to grant access to the spreadsheet.
CNAME to origin domain name to bypass Fastly (not recommended)
You can CNAME your domain names directly to the origin domain name (with *.c.<your_client_id>.ent.magento.cloud) to bypass Fastly. In this case, you need to use your own SSL (TLS) certificate.
However, if you bypass Fastly, we cannot guarantee a satisfactory site performance since Fastly is highly recommended for your Magento Commerce (Cloud) store.