Here is the full configuration of my default.vcl

### Start working for load balance #####
backend web01 {
  .host = "10.70.18.10";
  .port = "8080";
}

backend web02 {
  .host = "10.70.18.11";
  .port = "8080";
}

backend web03 {
  .host = "10.70.18.12";
  .port = "8080";
}

director web round-robin {
        {
                .backend = web01;
        }
        {
                .backend = web02;
        }
        {
                .backend = web03;
        }
}

sub vcl_recv {
 if (req.url ~ "\.(png|gif|jpg|swf|css|js|
jsp|html|htm|xml)$") {
    return (lookup);
    set req.backend = web;
 }
}

sub vcl_fetch {
 if (req.url ~ "\.(png|gif|jpg|swf|css|js|jsp|html|xml)$") {
   unset beresp.http.set-cookie;
}
}

Can you please kindly told me what is my wrong.
This configuration can not cache .jsp file
log is attached

Attachment: varnish.log
Description: Binary data

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to