We accelerate websites

15 days free trial Sign up

Media Acceleration Stream to the world

15 days free trial Sign up

Extensive Network Excellent world coverage

Accelerating a static website

Introduction

For websites with dynamic content (e.g. results from database) it is usual to cache (on CDN edge servers) static content such as images, CSS files, JavaScript files, etc. and to serve HTML pages (containing database results) from the origin (your) server. But if you have a website which consists only of static content you can cache your HTML pages and put your whole static website to the CDN cache.

You have two options for a CDN service - CDN Static or CDN Static Push. Please refer to Choosing the right CDN service type for more details. The "CDN Static Push way" is a little bit more straightforward but we are going to describe both.

Please note that some domain name registrars don't support a CNAME record for a second-level domain, e.g. mycompany.com. If you are unable to create a CNAME record for a second-level domain with your domain name registrar then it is not possible to CDN accelerate your whole website if it runs on a second-level domain, e.g. mycompany.com. In the following we will assume that your website is running on www.mycompany.com (which is a third-level domain).

Static CDN

In short you need to follow these steps.

  1. Set up your website on a new virtual host different from www.mycompany.com, for example on source.mycompany.com.
  2. Create a CDN Static service with Origin Domain set to source.mycompany.com and with Service Domain set to www.mycompany.com.

New virtual host

You need to create a new virtual host in your Apache configuration on your server as well as a new A or CNAME record for source.mycompany.com in your DNS configuration. Please ensure that the source.mycompany.com is returning the same content as www.mycompany.com.

Create a CDN Static service

On the Services/New Service page create a new CDN Static service with:

  • Service Domain: www.mycompany.com
  • Origin Domain: source.mycompany.com

Follow the Services/How-To instructions and add a CNAME record for www.mycompany.com to your DNS configuration (and remove the old DNS A or CNAME record for www.mycompany.com). Please note that it can take up to 48 hours to propagate this change in your DNS configuration to all DNS servers in the Internet.

That's all.

Static Push CDN

In short you need to follow these steps.

  1. Create a storage.
  2. Upload your website to the storage.
  3. Create a CDN Static Push service with Origin Storage set to the storage from step 1. and with Service Domain set to www.mycompany.com.

Create a storage

Please refer to Creating a storage for more details.

Upload your website

Please refer to Accessing a storage for more details.

Create a CDN Static Push service

On the Services/New Service page create a new CDN Static Push service with:

  • Service Domain: www.mycompany.com
  • Origin Storage: the storage from the previous steps.

Follow the Services/How-To instructions and add a CNAME record for www.mycompany.com to your DNS configuration (and remove the old DNS A or CNAME record for www.mycompany.com). Please note that it can take up to 48 hours to propagate this change in your DNS configuration to all DNS servers in the Internet.

That's all.

 
  _____      ___      ____       ___    
 /  ___||   / _ \\   |  _ \\    / _ \\  
| // __    | / \ ||  | |_| ||  | / \ || 
| \\_\ ||  | \_/ ||  | .  //   | \_/ || 
 \____//    \___//   |_|\_\\    \___//  
  `---`     `---`    `-` --`    `---`   
                                        
Europe
  • Amsterdam
  • Athens
  • Budapest
  • Chelyabinsk
  • Copenhagen
  • Dubai
  • Dublin
  • Frankfurt
  • Helsingborg
  • Helsinki
  • Istanbul
  • Khabarovsk
  • Kharkov
  • Kiev
  • Kungalv
  • Lisbon
  • London
  • Lvov
  • Madrid
  • Moscow
  • Odessa
  • Oslo
  • Paris
  • Polevskoy
  • Saint Petersburg
  • Stockholm
  • Trondheim
  • Zagreb
America
  • Arlington
  • Atlanta
  • Chicago
  • Dallas
  • Denver
  • Green Bay
  • Los Angeles
  • Miami
  • Montreal
  • New York
  • Phoenix
  • Portland
  • Provo
  • Queretaro
  • Reston
  • Sacramento
  • San Jose
  • Sao Paulo
  • Seattle
  • Toronto
  • Washington
Contact
  • e-mail: info@cdnsun.com
  • skype: cdnsun.com
  • phone: +1 844 300 9206
  • phone: +420 776 256 872
Blog Twitter LinkedIn Facebook CrunchBase Google+ / Google plus Foursquare Pinterest