varnish giving error 503

Mike Franon kongfranon at
Mon Mar 11 16:02:41 CET 2013


I am trying to get varnish up and running super fast for a production
website, we are hammered.

We only want to cache one URL, that is being hammered, and pass
everything else through, I know this is a just a simple config, but is
there anything I am missing to get a 503?  Is it because our servers
are being hammered that it is not even able to get pages to cache?

sub vcl_recv {

  # set default backend
  set req.backend = default_director;

  # lookup stylesheets in the cache
  if (req.url ~ "^/Tree") {


sub vcl_fetch {
  if (req.url ~ "^/Tree") {
    # removing cookie
    unset beresp.http.Set-Cookie;

    # Cache for 1 day
    set beresp.ttl = 1d;

More information about the varnish-misc mailing list