Nginx and Set-Cookie

My FastCGI process sends cookies, but they are not being sent to the
browser. Why does nginx not send the cookie header?

Nginx 0.7.63

2009/11/17 L. S. [email protected]:

My FastCGI process sends cookies, but they are not being sent to the
browser. Why does nginx not send the cookie header?

it should,

what is your conf ?

It’s the default config file from Ubuntu “apt-get install” with the
addition of a simple fastcgi section:
location ~ app.fcgi$ {
fastcgi_pass 127.0.0.1:9001;
include /etc/nginx/fastcgi_params;
}

On Tuesday 17 November 2009 11:56:39 pm L. S. wrote:

My FastCGI process sends cookies, but they are not being sent to the
browser. Why does nginx not send the cookie header?

Can you try explicitly set proxy header to pass with this setting?

 proxy_pass_header  Set-Cookie;

I solved it!
I was trying to recover, build, and run my application from a backup
after
my development machine died, but I was juggling too many tasks. So I was
erroneously looking for the cookie headers from nginx by doing this:
curl -i http://my.host/ | less
When I was meaning to do this:
curl -i http://my.host/fcgi/myapp | less

Therefore, I was calling index.html instead of my fastcgi process and
obviously getting no cookies. I took a short break, came back and
immediately noticed the error.

Thanks!