Currently I migrating my environment with Varnish + Apache + mod_php to
Varnish + Nginx + php-fpm.
When i set up new env Nginx + Varnish + php_fpm, ESI not work's
varnish.cfg ESI
vcl_fetch sub {
set beresp.do_esi = true;
set beresp.ttl = 5s;
}
Do I need to run additional ESI module in nginx?
Introduction
While checking the referrals to my page, I have found that one visitor came through google with the “why use varnish with nginx” keyword, these days I’ve been experimenting with both Nginx and Varnish, in front of my Apache server with a Drupal application.
So, I decided to write a little about what I’ve found.
If you do not know about Nginx or Varnish, here is
i see a lot of talks about using nginx + varnish and i do not get why? isn`t nginx enough?
nginx has SSI, Reverse proxy cache, lightweight, ssl, can work with cgi, fpm...
varnish has the same things, but no ssl, cgi support
thanks in advance
I have have a nginx server serving http and https and I have varnish behind to cache the apache requests
nginx (80+443) -> varnish (6081) -> apache (8081)
when I serve pages using 443, pages are already cached with port 80 (image references etc)
therefore browser alerts saying there is some encrypted and unencrypted content on the page.
I cant use relative URLS.
So I have a setup like Nginx -> varnish -> apache2
If I get a request with a static file it is sent through nginx to varnish and back to nginx again since its a lot faster than letting apache2 server it.
Introduction
If you want to use Varnish with Virtual Hosts, you may face the problem of Varnish showing only the default site and not all other virtual sites.
Do not try to fix it tweaking Varnish, as this is something you need to solve in Apache or Nginx configuration, depending on which of them is behind varnish.
In this post I'll show you how to configure both of them Nginx and Apache.
How to c
I am using nginx+ php5-fpm to render pages of a busy Drupal 6 community site.
My site uses nginx, varnish, jboss. And some url will be cached by varnish, it depends a response header from jboss.
The first time, jboss tells varnish doesn't cache this url. Then the second request, jboss tells varnish to cache, but varnish won't cache it.
Could you tell me if a configuration as below looks ok to serve pages delivered from my web servers. Is there some difficulty?
Requests --> HaProxy --> Varnish --> Nginx (frontend web server).
Is-it better to install varnish on my load balancers (haproxy) or on my web servers?
Cheers and thanks!