We are currently spiking a Varnish implementation to see if it would be appropriate to sit in front of our Rails application.
We want Varnish to cache the results of an API call and only hit the application when the client's ETag doesn't match the one stored in Varnish or the client's modified date is before Varnish's.
So far, I have not seen Varnish take these values into account.
We only get
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.
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
We use Varnish as our front-end web cache and load balancer, so we have a Linux server in our development environment, running Varnish with some basic caching and load-balancing rules across a pair of Windows 2008 IIS web servers.
We have a wildcard DNS rule that points *.development at this Varnish box, so we can browse http://www.mysite.com.development, http://www.othersite.com.development, etc
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 that varnish can be configured to set -smalloc or -sfile with a certain size.
I want to set a file cache of 1G such that least requested files are deleted first when cache is full. Is this possible in varnish? Is there another reverse proxy tool that can do this?
Introduction
OK, you now have varnish installed on your server and you started to catch the pages on it, so your webserver is now missing the hits to your pages.
Well, that is great for your webserver load, but not too good for your statistics analysis, because /var/log/apache/access_log will miss the hit.
In case you don’t know yet about Varnish, here is something about it from Wikipedia:
On Debian I have Varnish cache in front of apache and get 503 error when I try to get urls which are rarely fetched.
Putting Varnish In Front Of Apache On Ubuntu/Debian
Varnish is an open source "web accelerator" which you can use to
speed up your website. It can cache certain static elements, such as images or javascript
but you can also use it for other purposes such as Loadbalancing or some
additional security.