[error] 2230#2230: *84 client intended to send too large body: 1711341 bytes
centos7 lnmp部署知乎上传主体报错
2019/01/17 18:55:27 [error] 2230#2230: *89 open() "/code/wordpress/favicon.ico" failed (2: No such file or directory), client: 10.0.0.1, server: blog.lvhanzhi.com, request: "GET /favicon.ico HTTP/1.1", host: "10.0.0.7"
错误原因:nginx上传文件大小是有限制的,现在上传的文件超过了规定的大小
解决方法:修改nginx上传文件大小
[root@web01 ~]# vim /etc/nginx/conf.d/blog.lvhanzhi.com.conf
server {
listen 80;
server_name blog.lvhanzhi.com;
root /code/wordpress;
client_max_body_size 100m;
location / {
index index.php index.html;
}
location ~\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
~
~
~
~
~
~
~
~
~
"/etc/nginx/conf.d/blog.lvhanzhi.com.conf" 15L, 302C written
[root@web01 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@web01 ~]# systemctl restart nginx
最新文章
- 札记:Fragment基础
- [BootStrap] 富编辑器,基于wysihtml5
- 使用jQuery 的.on() 提交表单
- EPPLUS之外的选择,EXCEL的操作(NPOI,POI(java))
- 任务:写一个tomcat自启动脚本
- mac 环境下mysql 不能删除schema问题的解决办法
- hhgis驱动
- COJN 0558 800600带通配符的字符串匹配
- 正确地黑C
- Azure 基础:使用 powershell 创建虚拟机
- bzoj2005 NOI2010 方案统计
- [error] eclipse编写spring等xml配置文件时只有部分提示,tx无提示
- [转][osg]关于PagedLOD 加载卸载机制
- Vs code 设置
- Linq中left join之多表查询
- 使用RemObjects Pascal Script
- SparkR(R on Spark)编程指南 含 dataframe操作
- sqoop1 与sqoop2的对比
- latest报错
- android gson使用