Coral CDN: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Created page with "Coral is a free peer-to-peer content distribution network, comprised of a world-wide network of web proxies and nameservers. It allows a user to run a web site that offers high p...")
 
Line 53: Line 53:
==References==
==References==
<references/>
<references/>
[[Category:IT Infrastructure]]

Revision as of 12:31, 17 March 2011

Coral is a free peer-to-peer content distribution network, comprised of a world-wide network of web proxies and nameservers. It allows a user to run a web site that offers high performance and meets huge demand.[1]

OSE and Coral

URL

To completely bypass our server and access our site via Coral, go to this URL:

(which is just an alias to http://openfarmtech.org.nyud.net/)

OSE Configuration

This is the .htaccess configuration we have:

RewriteEngine On
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
#RewriteRule ^wiki/(.*:.*)$  wiki/index.php?title=$1 [L,QSA]
RewriteRule ^wiki/(.*:.*)$  /w/index.php?title=$1 [L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA,T=text/html]
RewriteRule ^index.php/(.*)$ /wiki/$1?old-url=slash [R=permanent,L,QSA]
# RewriteRule ^/*$ /w/index.php [L,QSA]
# RewriteLog "/home/marcin_ose/openfarmtech.org/rewrite.log" 
# RewriteLogLevel 3
# To disable CDN, load http://openfarmtech.org/anything/really.jpg?DISABLE-CDN
RewriteCond %{QUERY_STRING} (^|&)DISABLE-CDN$
RewriteRule . - [cookie=coral-no-serve:1:.openfarmtech.org:60]
Header append X-Coral-Control "redirect-home"
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{HTTP_USER_AGENT} !^.*Googlebot.*$
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
RewriteCond %{HTTP_COOKIE} !^.*(coral-no-serve|wiki_UserID|comment_author_|wordpress_logged_in|wp-postpass_).*$
# ----
RewriteCond %{REQUEST_URI} ^(/w/skins|/w/images|/weblog/wp-content/themes)|(.*\.(css|js|png|gif|jpg|jpeg|ico|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gz|gzip|ico|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$) [NC]
# Comment rule above to enable FULL CDN access
RewriteCond %{QUERY_STRING} !^.*attachment_id=.*$
RewriteCond %{QUERY_STRING} !^.*title=Special:.*$
RewriteCond %{QUERY_STRING} !^.*\/Special:OpenID.*$
RewriteCond %{REQUEST_URI} !^.*\GoogleSearch.*$
# ----
RewriteRule ^(.*)$ http://openfarmtech.org.nyud.net/$1 [R,L]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{HTTP_USER_AGENT} !^.*Googlebot.*$
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
# For things like http://openfarmtech.org/w/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000
RewriteCond %{QUERY_STRING} MediaWiki:[a-z]+\.css [NC]
RewriteRule ^(.*)$ http://openfarmtech.org.nyud.net/$1 [R,L]

References