Welcome! Log In Create A New Profile

Advanced

Re: CDN questions...

Ryan Malayter
January 08, 2011 02:40PM
On Sat, Jan 8, 2011 at 8:52 AM, Ilan Berkner <iberkner@gmail.com> wrote:
>
> Thanks for the details, once I realized the difference, going directly to the CDN is the whole point.
> Rackspace has an interesting product which combines storage + CDN so for us that kind solution may work well, but we're still exploring.
> Thanks

Don't forget the sub_filter module:
http://wiki.nginx.org/HttpSubModule

or the third-party subs_filter which can handle regex:
http://wiki.nginx.org/HttpSubsModule

We've used the former to test a CDN without modifying any application
code or application configuration and without doing HTTP redirects.

In your case something like this might help (assuming you keep the
same path structure on the CDN as your site, or you are using origin
fetch mode):
sub_filter 'www.ourdomain.com/sounds''
'mybucket.cdndomain.com/sounds/';
sub_filter_once off;

If you need to do regex or multiple rules in a location, you'll need
the thrid-party subs_filter instead of the built-in sub_filter.

--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

CDN questions...

iberkner January 07, 2011 08:40PM

Re: CDN questions...

nicholas.tang@livestream.com January 07, 2011 09:14PM

Re: CDN questions...

iberkner January 07, 2011 09:22PM

Re: CDN questions...

nicholas.tang@livestream.com January 08, 2011 09:16AM

Re: CDN questions...

iberkner January 08, 2011 09:56AM

Re: CDN questions...

Ryan Malayter January 08, 2011 02:40PM

Re: CDN questions...

iberkner January 08, 2011 11:16PM

Re: CDN questions...

Ryan Malayter January 09, 2011 12:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready