Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Странное поведение upstream sent too big header (3 replies)

$
0
0
При попытке перехода на отдельные страницы выдаёт ошибку 502 и в логах:

2013/03/08 13:03:06 [error] 9287#0: *10 upstream sent too big header while reading response header from upstream, client: 192.168.137.1, server: example.com, request: "GET /news/new HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "example.com", referrer: "http://example.com/news/"

Пробывал добавлять
fastcgi_buffer_size 256k;
fastcgi_buffers 8 16k;
Ничего не изменилось.
Конфиг целиком
server {
listen 80;

server_name example.com;
root /home/developer/dev/projects/example.com/web;

error_log /var/log/nginx/example.com.error.log;
access_log /var/log/nginx/example.com.access.log;


# strip app.php/ prefix if it is present
rewrite ^/index\.php/?(.*)$ /$1 permanent;

location / {
index app_dev.php;
try_files $uri @rewriteapp;
}

location @rewriteapp {
rewrite ^(.*)$ /app_dev.php/$1 last;
}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ ^/.+\.php(/|$) {
fastcgi_buffer_size 256k;
fastcgi_buffers 8 16k;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}


Что интересно, так это то, что ошибка возникает только если с хрома заходить. Если зайти с другого, то данная ошибка не появляется.

Подскажите, куда копать?

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>