生活在宁静的角落 nginx
Nginx 出现413 Request Entity Too Large得解决方法
今天处理文件上传功能的时候,总是提示接口错误,很是郁闷。换小文件发现没有问题,所以问题肯定出现在文件大小上。切 …
nginx 出现an upstream response is buffered to a temporary file
今天检查机器运行情况的时候在日志里看到这么一条:
2017/02/14 11:25:05 [warn] 32254#32254: *34 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/00/0000000003 while …点击查看更多…
Nginx 配置虚拟主机
- 当前nginx的版本
[root@localhost ~]# nginx -v nginx version: nginx/1.10.3
2. 查看nginx 目录结构
[root@localhost ~]# cd /etc/nginx/ [root@localhost nginx]# tree ../nginx ../nginx ├── conf.d │ ├── default.conf │ └── default.conf.rpmsave ├── fastcgi_params ├── koi-utf ├── koi-win ├── mime.types ├── modules -> ../../usr/lib64/nginx/modules ├── nginx …点击查看更多…
nginx+ php 配置 access denied
之前配置nginx+php的时候,每次,访问html页面是正常的,但是一旦访问php的页面就出现acces denied.
后来发现是nginx配置问题/etc/nginx/conf.d/default.conf
server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /data …点击查看更多…