Varnish has proven to be very hard to use with nginx in the above setup. Especially, trying to understand the ssl bit is getting to be really hard.
Can it also work with spdy?
Varnish has proven to be very hard to use with nginx in the above setup. Especially, trying to understand the ssl bit is getting to be really hard.
Can it also work with spdy?
Just get your /admin-system to send the correct Cache-Control headers, Varnish will respect the headers, and serve it correctly.
b) You have to terminate SSL connections before hitting Varnish. There is very little chance SSL termination will ever be part of Varnish. On AWS you can terminate with ELB.
c) Varnish can add HTTP headers and it will respect the headers your backend sets.
d) Varnish can disable caching for a specific path or again it will respect the No-Cache headers a backend sets.
Or is it nginx (SSL termination) -> varnish -> nginx (server) -> Rails
It is not as bad it seems since using Nginx to terminate SSL and forward is just a really simple config file. If you have a lot of cached resources then the path is mostly Nginx -> Varnish. Varnish is probably over 100 times faster than Rails at serving anything cacheable.
if (req.http.host == "www.foo.net") {
set req.http.host = "foo.net";
}should I do anything special in varnish, or should I trust it to cache the nginx redirect headers by itself ?