The StackPath site URL is automatically generated after a site is created. It consists of three parts:
- Site name: This is the name a site is given before it's provisioned.
- Alias name: This is created during initial StackPath account setup. Many people use their company name or last name.
- StackPath server name: This is the name of the servers StackPath delivers content from. StackPath users can not rename this. It's always stackpathdns.com.
The site URL is structured like this: http://site.company.stackpathdns.com.
Site URL vs Custom Site URL
The site URL generated after a site is created contains the root URL of the CDN. However, you can mask this by creating a CNAME record.
Creating a CNAME record lets you use what's known as a custom CDN URL in place of the original root CDN URL. This is usually done for branding purposes. For instance, if visitors view the source code of a page they'll see a brand-friendly URL (http://cdn.yourdomain.com) rather than a StackPath URL (http://site.company.aliasname.stackpathdns.com) for static assets.
CDN URL: http://site.company.stackpathdns.com
Custom CDN URL: http://cdn.yourdomain.com
Finding the CDN URL
To find the CDN URL generated after a site is made, follow these steps:
-
Select Sites in the left-hand menu:
-
For the site you want to whitelist referrers for, click Manage.
-
Select the Summary tab in the left-hand menu.
-
Find the section at the top of the page labeled Site Configuration.
-
Your CDN URL is in the third row:
If you're implementing StackPath CDN with a CDN integration plugin or through custom CDN integration, http:// is often required to precede the CDN URL. If http:// is not included, static assets may not load.
Locating the Custom CDN URL
To do this a CNAME record must be created that points to the original CDN URL.
-
Follow steps 1-3 in the previous section
-
Select the Settings tab in the left-hand menu.
-
Find the section at the top of the page labeled Custom Domain Settings.
-
Your custom CDN URL is below the +Add field: