php - 当我使用 php setrawcookie 函数时出现服务器错误

标签 php nginx php-5.6

我遇到了一个奇怪的问题,当我使用 setrawcookie 函数时,出现错误 502,

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

它向我抛出 502 Bad Gateway nginx/1.11.5 错误。

我有 PHP 版本 5.6.40, Cookie 设置,enter image description here

预先感谢您的帮助。

最佳答案

我发现了问题,它来自 nginx

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

我更新代理缓冲配置及其工作,

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

感谢@Barmar

关于php - 当我使用 php setrawcookie 函数时出现服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55663356/

相关文章:

php - 在 Debian 9 中安装 php5.6

php - 如何在 Laravel 5.4 中配置 .env 文件避免垃圾邮件

php - 如何在 PHP 中使用 Horde IMAP 客户端提取电子邮件附件

python - Flask Ansible 通过主管启动时出错

docker - 使用 php7.1、laravel 和 nginx 服务器设置 docker,出现 Bad Gateway 502 异常

php - Nginx - 自定义 404 页面

php - 使用未定义常量 SIGTERM -> 假定为 'SIGTERM'

php - Activerecord 时区格式不正确

php - 谁看过你的个人资料