CDN questions...

Ilan Berkner iberkner at gmail.com
Sun Jan 9 07:12:24 MSK 2011


Thanks, why wouldn't you do a location rewrite? What's the advantage of
using the sub / subs module?

On Sat, Jan 8, 2011 at 2:36 PM, Ryan Malayter <malayter at gmail.com> wrote:

> On Sat, Jan 8, 2011 at 8:52 AM, Ilan Berkner <iberkner at 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110108/e251826f/attachment.html>


More information about the nginx mailing list