Exclude a URL

Flavio Torres fla_torres at yahoo.com.br
Wed Jan 12 20:04:42 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/12/2011 01:55 PM, Eduardo Gimenez Ruiz wrote:
> I see: * In chromium that header response is: X-Varnish:791424256

if you are using pipe, then you will get something like that (VCL_call):

$ varnishlog -o -c | perl -ne 'BEGIN { $/ = "";} print if
(/RxURL.*.*$/m and /VCL_call.*pipe*/);'

  259 ReqStart     c 10.10.71.201 5791 158147924
  259 RxRequest    c GET
  259 RxURL        c /html/ultimas/jogorapido/latestNews.json
  259 RxProtocol   c HTTP/1.1
  259 RxHeader     c x-requested-with: XMLHttpRequest
  259 RxHeader     c Accept-Language: pt-br
  259 RxHeader     c Referer:
http://www.host.com.br/gadgets/latestNews/content.html?canal=274&numShowNews=4&corMenu=4A89D9&corTitulos=00437F&no_cache=15604506172
  259 RxHeader     c Accept: application/json, text/javascript, */*
  259 RxHeader     c Accept-Encoding: gzip, deflate
  259 RxHeader     c User-Agent: Mozilla/4.0 (compatible; MSIE 8.0;
Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)
  259 RxHeader     c If-Modified-Since: Wed, 12 Jan 2011 17:59:21 GMT
  259 RxHeader     c Host: www.host.com.br
  259 RxHeader     c Connection: Keep-Alive
  259 RxHeader     c Cookie: nvgpfl=95742716;
__utma=223990925.1623791818.1281182520.1290519949.1290605813.225;
__utmz=223990925.1281182520.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
  259 VCL_call     c recv pipe
  259 VCL_call     c hash hash
  259 VCL_call     c pipe pipe
  259 Backend      c 165 my_backend my_backend
  259 ReqEnd       c 158147924 1294859016.082086086
1294859016.163696051 2.148682117 0.000518799 0.081091166


> * In varnishlog -o -b: 14 BackendOpen b default 127.0.0.1 59592
> 127.0.0.1 8080 14 TxRequest b GET 14 TxURL b
> /portal/ajax_user_bar/login?0.786534147337079 14 TxProtocol b
> HTTP/1.0 14 TxHeader b Host: maq.domain.com 14 TxHeader b
> Referer: http://maq.domain.com/portal/ 14 TxHeader b
> X-Requested-With: XMLHttpRequest 14 TxHeader b Accept:
> text/html, */* 14 TxHeader b User-Agent: Mozilla/5.0 (X11; U;
> Linux i686; en-US) AppleWebKit/534.10 (KHTML, like Gecko)
> Ubuntu/10.04 Chromium/8.0.552.224 Chrome/8.0.552.224 Safari/534.10
> * varnishtop -b -i TxURL: 0.99 TxURL
> /portal/ajax_user_bar/login?0.35733756981790066


varnishtop: will show you the log entry *ranking*;



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0t+0cACgkQNRQApncg2961NQCgggnRMsmWprktXVDHQ4aNODIT
fuwAnRPF+TVUjWFGdt8lO7inVS8K4aE4
=m6oV
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110112/3103216b/attachment-0003.html>


More information about the varnish-misc mailing list