Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When i use php setrawcookie function getting server error

Tags:

php

nginx

php-5.6

I am facing strange issue, When I use setrawcookie function, I got error 502,

setrawcookie("PVEAuthCookie", $vncproxy['ticket'], 0, "/",'mydomain.com', true);

It's throw me 502 Bad Gateway nginx/1.11.5 error.

I have PHP Version 5.6.40, Cookie settings, enter image description here

Thanks in advance for your help.

like image 668
Jaysukh Maghodiya Avatar asked Jun 21 '26 00:06

Jaysukh Maghodiya


1 Answers

I found the issue, It was from nginx

41014 upstream sent too big header while reading response header from upstream,

I update proxy buffering configuration and its works,

proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

Thanks @Barmar

like image 176
Jaysukh Maghodiya Avatar answered Jun 22 '26 14:06

Jaysukh Maghodiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!