nginx 超时设置 文件最大大小限制教程
server {
listen 80; #侦听端口
server\_name www.xx.cn; #定义使用www.xx.com访问
#charset koi8-r;
#access\_log logs/host.access.log main; #设定本虚拟主机的访问日志
client\_max\_body\_size 30m; #文件最大大小
proxy\_connect\_timeout 600; #设置超时时间
proxy\_read\_timeout 600;
proxy\_send\_timeout 600;
location / {
root /; # 定义服务器的默认网站根目录位置
index index.html index.jsp; # 定义首页索引文件的名称
proxy\_pass http://127.0.0.1:8180 ; #请求转向mysvr 定义的服务器列表
}
error\_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error\_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}