Creating a simple distribution
#
Creating a simple distributionThe process in the below section describes how to create a basic CDN configuration for your web app or website. It includes two sections:
Creating a simple distribution
Access your content through Captain CDN
#
Step 1: Create a Captain CDN Distribution- Open Captain CDN and go to Distribution menu.
- Select Create Distribution.
- The first step is providing information about your Origin. Origin Name, website where you are trying to implement the CDN. If Example.com is your website, then you would write example.com.
- Under Origin Path, which is optional, provide the default path that the Captain CDN will always forward to this particular origin. Eg /images.
- Origin ID - unique origin name of your distribution. Leave it default, unless you know that you will have more than one origin (more than one origin is usually in origin groups, where origin groups are used in load-balancing).
- Origin Custom Headers - you can configure CDN to add custom headers to the requests that it sends to your origin. These custom headers enable you to send and gather information from your origin that you don't get with typical viewer requests. These headers can even be customized for each origin.
- Click on Next, and under Default Cache Behavior leave all the settings as default. Default cache behavior sends all the requests to the origin, and is used as a fallback if all other cache behaviors (path patterns) are not matched with the user request. After you create a distribution, you will be able to create more cache behaviors and add path patterns for your content.
- Click on Next, and under Distribution Settings, leave all the settings as default.
- Click on Done.
- Captain CDN creates your distribution and it distributes the content on the Edge location servers. The status changes from Deploying to Deployed and this usually happens in a few minutes. Captain CDN generates a domain name for this distribution and you will have to record it for future use.
#
Step 2: Access the content through Captain CDNTo access your content through Captain CDN, you will need to combine the CDN distribution domain name that Captain CDN assigned to your distribution with the path of the content. For example, if your domain name that Captain CDN assigned to your distribution looks like this: D593JFSY.gjirafa.net and if the path to your content is /wp-conent/images* you can now access your content through CDN with the below URL D593JFSY.gjirafa.net/wp-content/images/testimage.jpg
If you click on that link, content will appear, and that content is served from a location that is closest to end users. If you want to use a custom domain name and not Captain CDN domain name then you can see more information at Using Custom URLs.