设置 HTTP 请求/响应标头限制

Edge for Private Cloud v. 4.16.09

边缘路由器和消息处理器对请求/响应标头和行大小有预定义的限制。

对于处理来自 API 的传入请求的路由器,请修改 /<inst_root>/apigee/customer/application/router.properties 中的以下属性以更改这些默认值:

conf_router_HTTP.request.line.limit=4k
conf_router_HTTP.request.header.limit =8k
conf_router_HTTP.response.line.limit=4k
conf_router_HTTP.response.header.limit =8k

如果该文件不存在,请创建该文件。

更改以下属性后,您必须重启路由器:

> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-router restart

对于负责处理发送到后端服务的传出消息的消息处理器,请修改 /<inst_root>/apigee/customer/application/message-processor.properties 中的以下属性以更改这些默认值:

conf/http.properties+HTTPRequest.line.limit=7k
conf/http.properties+HTTPRequest.headers.limit=25k 
conf/http.properties+HTTPResponse.line.limit=2k 
conf/http.properties+HTTPResponse.headers.limit=25k

如果该文件不存在,请创建该文件。

更改以下属性后,您必须重启消息处理器:

> /<inst_root>/apigee/apigee-service/bin/apigee-service edge-message-processor restart