Re: vim syntax

2010-01-22 Thread Kristian Lyngstol
On Tue, Nov 24, 2009 at 07:57:54PM +0200, Elan Ruusamäe wrote:
 @phk mentioned in the irc, that somebody has written varnish syntax for vim. 
 i 
 tried to search the archives but found no info about it.
 
 anyone knows? would be pity to start writing one from scratch if somebody 
 already spend some time of yours on it.

I've heard rumours too, but never seen it. Since it's close to C, I usually
get by with C-syntax.

There are some differences (ie: set foo = bar, not foo = bar, and ~...) but
I suppose using C as a base will save you a lot of time. If you do write
one, drop it here and I wouldn't mind testing it, I do work with VCL from
time to time ;)

-- 
Kristian Lyngstøl
Redpill Linpro AS
Mob: +47 99014497


pgpRDNFNWUitK.pgp
Description: PGP signature
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: X-Forwarded-Forand 2 layers of Varnish

2010-01-22 Thread pub crawler
X-F-F will be nice.

For now our solution on our application layer (where we log IP info)
is to loop through the X-FORWARDED-FOR data and look the for the
actual IP in there, discarding localhost info and any other that are
related to our infrastructure which requests traverse through.


On Fri, Jan 22, 2010 at 9:08 AM, Kristian Lyngstol
krist...@redpill-linpro.com wrote:
 (A bit of necroposting, hopefully still relevant)

 On Tue, Dec 01, 2009 at 03:26:35PM -0500, Jean-Christophe Petit wrote:
 we use 2 layers of Varnish and it proved to be highly scalable and
 efficient.
 But on the second layer, we are not able to get the X-Forwarded-For from
 the first layer to sent it to the Backend (Apache)
 In fact, on the second layer we have 2 X-Forwarded-For (Visitor + first
 Varnish layer)
 Is there something we can do on the first Varnish layer to only transmit
 the X-Forwarded-For of the visitor ?

 This is fixed in trunk, in that X-F-F is moved into the default VCL and
 appends correctly.

 In Varnish 2.0 you could work around it by having the first set
 X-Original-Forwarded-For, then on the second tier, you overwrite
 X-Forwarded-For with X-Original_forwarded-For... It's not horribly pretty,
 but should get you what you want until the trunk-fixes are in a release.

 --
 Kristian Lyngstøl
 Redpill Linpro AS
 Mob: +47 99014497

 ___
 varnish-misc mailing list
 varnish-misc@projects.linpro.no
 http://projects.linpro.no/mailman/listinfo/varnish-misc


___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: X-Forwarded-Forand 2 layers of Varnish

2010-01-22 Thread Jean-Christophe Petit
Thank you Kristian.

I'll give it a try and hopefully we will have a new release soon ;)

Best Regards,

JC
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc