I am troubleshooting the setup of Varnish 3.x on my Ubuntu server. I'm running Drupal 7 on two sites set up on the box, via named-based vhosts.
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.
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'm trying to configure varnish to cache every GET-Request to our CMS based website (running on apache) without considering the ttl given by the CMS for dynamic or apache for static content.
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
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:
I have a Drupal site that uses Varnish.
I am trying to redirect people that come to a url starting with /node when they view the site via Varnish.
I have tried the following in the .htaccess file but it gives 500 errors.
RewriteCond %{HTTP:Via} =1.1 varnish
RewriteRule ^node / [R=301,NC,L]
I haven't been able to find anything using google in relation to how to target the 'Via' section of
On Debian I have Varnish cache in front of apache and get 503 error when I try to get urls which are rarely fetched.
I am using nginx+ php5-fpm to render pages of a busy Drupal 6 community site.