Welcome! Log In Create A New Profile


Problem with devise and nginx proxy cache

July 10, 2015 12:03PM
I have a RoR project which was working just fine.
But i've tryied to follow this site and add proxy cache to my nginx config: http://vstark.net/2012/10/21/nginx-unicorn-performance-tweaks/ and devise just won't sign_in anymore. I don't get any errors, just don't sign_in and redirect me to login again.

As the autor from the link suggested to someone with same problem as I, i've done this on my nginx conf:

location = /users/sign_in{
proxy_pass http://app;
proxy_set_header Host $http_host;
proxy_ignore_headers Set-Cookie;
proxy_ignore_headers Cache-Control;
proxy_cache_bypass $http_secret_header;
add_header X-Cache-Status $upstream_cache_status;

The same to /login.
But devise still won't sign_in.

Anyone knows how to solve that?
Any more configs so I can skip cache to sign_in?
Subject Author Posted

Problem with devise and nginx proxy cache

birimblongas July 10, 2015 12:03PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready