Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2461088
  • 博文数量: 392
  • 博客积分: 7040
  • 博客等级: 少将
  • 技术积分: 4138
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-17 13:03
个人简介

范德萨发而为

文章分类

全部博文(392)

文章存档

2017年(5)

2016年(19)

2015年(34)

2014年(14)

2013年(47)

2012年(40)

2011年(51)

2010年(137)

2009年(45)

分类: Java

2013-08-09 17:51:56

.
看了这篇文档解决的,原来是在solr之上,加了个nginx,去掉nginx,直接使用solr的端口访问即可
原文摘录,大致是说使用了user agent,user agent要求请求里包含content-Length,但是估计solrj的请求里木有,所以去掉代理即可

A server MAY reject a request that contains a message body but not a by responding with .

Unless a transfer coding other than chunked has been applied, a client that sends a request containing a message body SHOULD use a valid header field if the message body length is known in advance, rather than the chunked transfer coding, since some existing services respond to chunked with a status code even though they understand the chunked transfer coding. This is typically because such services are implemented via a gateway that requires a content-length in advance of being called and the server is unable or unwilling to buffer the entire request before processing.

A user agent that sends a request containing a message body MUST send a valid header field if it does not know the server will handle HTTP/1.1 (or later) requests; such knowledge can be in the form of specific user configuration or by remembering the version of a prior received response.


400:
addField()里的字段在schemal.xml中没有配置

另一种方法是给nginx添加模块补丁
http://blog.csdn.net/fangzhangsc2006/article/details/8122273
阅读(1719) | 评论(0) | 转发(0) |
0

上一篇:sed相关操作

下一篇:Facebook 网站架构

给主人留下些什么吧!~~