| Follow with RSS

Hosting Big Files on a Slow Site

October 23rd, 2008 by Ken Mankoff

Just a note and a thank you to NYU for their Coral Content Distribution Network. It allows a small bandwidth site like this to host large files that require large bandwidth. All I have to do is change links from http://kenmankoff.com/some_large.file to http://kenmankoff.com.nyud.net/some_large.file. The first viewer still has to wait while CCDN gets the file from me, but all subsequent requests for the file get automagically served from the CCDN servers, at almost zero access cost to my site, for free.

If you want to have all your data served via CCDN, add this to your .htaccess:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
RewriteRule ^(.*)$ http://www.yourdomain.com.nyud.net/$1 [R,L]

For further examples (between outsourcing just one file via HTML and the entire site via Apache) read more here and here.

Leave a Reply