Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Problem with vanilla 2.1.10 and varnish - signin not working


I just installed vanilla 2.1.10 on our production cluster, and I'm having trouble signing in via the varnish cache.
I can sign in fine using 'links' (no js support) and hitting the backend server directly. However, if I go thru the varnish cache, I always get 'Please try again'. I'm at a bit of a loss, as I installed vanilla fine going thru the cache... Currently varnish is just configured to 'pass' everything back to vanilla with no caching. The setup is :

varnish ->nginx ->php-fpm

I'm wondering if the problem has to do with missing X-Forwarded-For (We don't track IPs for legal reasons)
or does the vanilla js need the 'visible' server name / path for something ? ( eg
I'm rather puzzled how it managed to install, create the DB's etc with this setup, but then refuses to auth with it ?

Any help would be appreciated!



  • Options

    For anyone else in this situation...
    It appears vanilla needs a bunch of cookies - 'Vanilla-Volatile' and 'Vanilla-tk' have to get thru at least. (not sure if it needs PHPSESSID). I strip pretty much all incoming cookies in varnish, so no joy.

    For now, short circuiting my varnish config to just 'not touch' vanilla traffic seems to be working. I'll have to re-write my varnish configs to respect vanilla's cookies.

    I guess during installation it doesn't use/test cookies...


  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    It appears vanilla needs a bunch of cookies

    Only one cookie, the others are attached by you free domains....

Sign In or Register to comment.