打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
HTTP模块(二)
userphoto

2009.07.24

关注

client_header_timeout

syntax: client_header_timeout time

default: client_header_timeout 60

context: http, server

Directive assigns timeout with reading of the title of the request of client.

The timeout is set only if a header is not get in one readstep. If after this time the client send nothing, nginx returns error "Request time out" (408).

client_max_body_size

syntax: client_max_body_size size

default: client_max_body_size 1m

context: http, server, location

Directive assigns the maximum accepted body size of client request, indicated by the line "Content-Length" in the header of request. 可接受的客户端最大request body,也就是http request头部中的content-length字段指定的值

If size is greater the given one, then the client gets the error "Request Entity Too Large" (413). content-length大于给定的这个值,就会返回Request Entity Too Large 错误

It is necessary to keep in mind that the browsers do not know how to correctly show this error.一定要记住浏览器是不知道如何正确的显示错误的,所以一定要使用error_page指定显示错误页面??

Default_type

语法:default_type MIME-type

缺省值:default_type text/plain

Context:http,server,location

当标准的MIMEmap没有指定任何东西时,指定默认的MIME-type

e.g.

location = /proxy.pac {
      default_type application/x-ns-proxy-autoconfig;
}
location = /wpad.dat {
      rewrite . /proxy.pac;
      default_type application/x-ns-proxy-autoconfig;
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Nginx的超时timeout配置详解
List of HTTP status codes
nginx proxy
ngix 配置文件解析 会话亲和
解决国外用户访问网站慢的问题
nginx 灰度发布(基于cookies)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服