我下载了nginx,并在欢迎使用的nginx页面上添加了一些大cookie。 发送请求后,我得到以下信息:
如果我删除了cookie,这就是我得到的:
因此,当请求Cookie大于8000左右时,我会收到400个错误请求:
我在网上搜索了很多,所有可以解决此问题的相关变量,我将它们添加到了nginx.conf的服务器部分,如下所示:
server {
listen 80;
server_name localhost;
large_client_header_buffers 4 256k;
large_client_header_buffers 4 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
proxy_buffer_size 256k;
client_header_timeout 600s;
client_header_buffer_size 256k;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
我有什么想念的吗? 可能是nginx的错误吗? 任何帮助表示赞赏 谢谢