Varnish and AWS ELB

Tobias Honacker t.honacker at googlemail.com
Mon Sep 14 20:19:25 CEST 2015


Hi guys,

i currently stuck on the following setup:

Client / Request -> 1x ELB (LBCookieStickinessPolicy) -> 2x Varnish -> 3x
Backend

I need to setup session stickyness otherwise backend sends CSRF-Token is
invalid.
AWS ELB sends cookies like: AWSELB=
E5D3B9C50EAF269F2C074A8A0DA1A422FAB5B73E769AA411DD448..

If i send the first request to my website, ELB created the cookie and sent
the request to varnish1. After reloading the website (second request) ELB
created a new cookie and is balancing to the second varnish.

Does anyone know how to fix this issue?

Thanks and regards
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150914/fe329b86/attachment.html>


More information about the varnish-misc mailing list