[wp-hackers] CDN Integration?

Mike Schinkel mikeschinkel at newclarity.net
Tue Feb 3 15:25:48 GMT 2009


Peter:

Yes, thanks. Yeah, mod_rewrite is an option but I want to set it up hands-off in a reusable plugin so I was try to avoid that scenario.  I'm just going to go with what Daniel Cameron suggested.

> Limelight  uses limelight.com (i believe it's llnwd.com) 

Yes, I think they do.

> and in the query it states no-serve when they don't have the content.

That I don't follow?

-Mike Schinkel
http://mikeschinkel.com/

----- Original Message -----
From: "Peter van der Does" <peter at avirtualhome.com>
To: wp-hackers at lists.automattic.com
Sent: Monday, February 2, 2009 10:46:38 PM GMT -05:00 US/Canada Eastern
Subject: Re: [wp-hackers] CDN Integration?

On Mon, 2 Feb 2009 20:54:14 -0600 (CST)
Mike Schinkel <mikeschinkel at newclarity.net> wrote:

> Hmm. Interesting. But that won't work because the PHP files need to
> be on the local server and not on CDN.
> 
> If there were some way set a subdir of the theme, i.e.:
> 
>    /wp-content/themes/my-theme/media-assets/
> 
> Do you know of a way to do that?
> 
> -Mike Schinkel
> http://mikeschinkel.com/
> 

No, without a plugin I don't think it's possible I don't BUT you can do
another solution.

Use ReWrite Rules:
RewriteEngine On
ReWriteCond %{HTTP_HOST} !limelight\.com [NC]
RewriteCond %{QUERY_STRING} !no-serve$
RewriteRule 
^http://www.\foo\.com/wp-content/themes/my-theme/media-assets/(.*)$
http://whatever.limelight.network.is/and/maybe/subs/$1 [R,L]

Ok this involves a few assumptions :)
Limelight  uses limelight.com (i believe it's llnwd.com) and in the
query it states no-serve when they don't have the content.

I think you get the idea.

-- 
Peter van der Does

GPG key: E77E8E98

WordPress Plugin Developer
http://blog.avirtualhome.com

GetDeb Package Builder/GetDeb Site Coder
http://www.getdeb.net - Software you want for Ubuntu
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list