求助:nginx配置问题,困扰很久了

inCoding 2012-08-10 05:04:34
/log/error.jsp中报
[error] 3179#0: *25 upstream prematurely closed connection while reading response header from upstream,....错误

应用部署在resin4上,单独访问resin没问题。但是一通过nginx->resin就有问题
nginx配置如下

upstream image_processor {
server 10.10.92.10:8081;
}

server {
listen 80;
server_name up.t.sina.com;
client_max_body_size 500m;
client_body_timeout 1200;
client_body_buffer_size 1024k;
#charset koi8-r;

#access_log logs/host.access.log main;

# location / {
# root html;
# index index.html index.htm;
# }

location ~ (.*)$ {
proxy_pass http://image_processor;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
allow all;
}
...全文
1412 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
inCoding 2012-08-14
  • 打赏
  • 举报
回复
没人回答!

1,233

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧