Welcome! Log In Create A New Profile

Advanced

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

April 28, 2010 03:46PM
On Wed, Apr 28, 2010 at 12:29:29PM -0700, Ben DJ wrote:

> > I did not understand what that parallel CDN does and what problem you
> > have encountered.
>
> A good description is here, http://drupal.org/project/parallel
>
> Basically, serving various content types in parallel from Varnish
> in-memory caches, in particular when memcache(d) is not an option due
> to low RAM constraints (on a VPS ...).
>
> The performance boost -- admittedly under the right concurrent loads
> -- can be dramatic.

I understand the idea, but do not see any issues with nginx.
Probably you need something like this:

server {
server_name example.com
cdn1.example.com
cdn2.example.com
cdn3.example.com
;

location / {
proxy_pass http://backend;
...
}

location ~ \.(js|css|gif|jpe?g|png)$ {
proxy_pass http://backend;
...
proxy_cache CACHE;
}

The files http://cdn1.example.com/some.js and http://cdn2.example.com/some.js
will be stored in nginx cache as single file with key
http://backend/some.js.


--
Igor Sysoev
http://sysoev.ru/en/

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

nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

BenDJ April 27, 2010 09:12PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Igor Sysoev April 28, 2010 02:30AM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Igor Sysoev April 28, 2010 02:36AM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

BenDJ April 28, 2010 11:40AM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Igor Sysoev April 28, 2010 03:18PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

BenDJ April 28, 2010 03:36PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Igor Sysoev April 28, 2010 03:46PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

BenDJ April 28, 2010 04:00PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

Guillaume Filion April 28, 2010 12:30PM

Re: nginx compression-at-edge (in front of a reverse proxy) compresses some content, not other ?

BenDJ April 28, 2010 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
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