Exclude a URL

Eduardo Gimenez Ruiz egimenez at vectorsf.com
Wed Jan 12 16:09:13 CET 2011


Hi and Hola for the Spanish speaking in the list :D

Thank you so much for your answers..... now I try to update the version 
of my varnish.

Thank to Flavio and Kristian for their answers, when will be finish 
update correctly my varnish I will try to follow your advice.

On 01/12/2011 03:48 PM, Flavio Torres wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01/12/2011 09:16 AM, Eduardo Gimenez Ruiz wrote:
> > Hi all in the list:
>
> >
>
> Hola! ;)
>
>
> > I use a Varnish Version 1.1.2
> with pressflow (a kind of drupal)
>
> > and i try to exclude a URL (or a path) from the cache.
>
> >
>
> Do you mean 2.1.2 ?
>
> > I use this configuration in
> my default.vcl:
>
> >
>
> > sub vcl_recv { if (req.url ~ "^/portal/ajax_user_bar") {
> //return
>
> > (pass); //pass; unset req.http.cookie; } [other code] }
>
> >
>
> try this [1]:
>
>         if (req.url ~ "ajax_user_bar") {
>                 return (pipe);
>         }
>
>
>
> > And in all case I see this
> result with "varnishtop -b -i TxURL"
>
> > is:
>
> >
>
> > 1.00 TxURL /portal/ajax_user_bar/login?0.9301228949334472
>
> >
>
> > The number after the "login?" are a ramdom number from the
> code
>
> > and the "ajax_user_bar" is a module in pressflow not a
> directory of
>
> > the OS.
>
> >
>
> Don't worry, varnish will match "ajax_user_bar"
>
> >
>
> > Thank for all help, advice or documentation that you can
> give me.
>
>
> [1] - http://www.varnish-cache.org/trac/wiki/VCL#vcl_pipe
>
>
> hope this helps
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0tvzIACgkQNRQApncg296V4ACg2DhT1311CEueyv4WNlosXJuq
> wYEAnReacApkqcPTtds2yFD6nLdwOUcL
> =EJHg
> -----END PGP SIGNATURE-----
>

-- 
Eduardo Giménez Ruiz

Móvil: (+34) 615 90 60 98
Fax: (+34) 91 799 55 30
____________________________

Parque empresarial La Finca
Paseo del Club Deportivo, 1 - Bloque 11
28223 Pozuelo de Alarcón
Madrid
____________________________
http://www.vectorsf.com


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


More information about the varnish-misc mailing list