nginx
幸福男孩
做熊就要有个熊样
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx php-fpm 输出php错误日志
nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息。 nginx把对php的请求发给php-fpm fastcgi进程来处理,默认的php-fpm只会输出php-fpm的错误信息,在php-fpm的errors log里也看不到php的errorlog 原因是php-fpm的配置文件php-fpm.conf中默认转载 2013-11-15 17:22:24 · 2130 阅读 · 0 评论 -
nginx File not found 错误
使用php-fpm解析PHP,"No input file specified","File not found"是令nginx新手头疼的常见错误,原因是php-fpm进程找不到SCRIPT_FILENAME配置的要执行的.php文件,php-fpm返回给nginx的默认404错误提示。 比如我的网站doucument_root下没有test.php,访问这个文件时通过抓包可以看到返回的内容。转载 2013-11-04 11:55:25 · 2826 阅读 · 0 评论 -
LNMP环境搭建
LNMP || 安装所需各种依赖包 yum –y install gcc gcc-c++ autoconf automake bison flex freetype freetype-devel fontconfig-devel gettext-devel libjpeg libjpeg-devel libpng libpng-devel libxml2 libxml2-devel转载 2013-11-27 17:50:07 · 1011 阅读 · 0 评论 -
Nginx配置文件详细说明
在此记录下Nginx服务器nginx.conf的配置文件说明, 部分注释收集与网络. #运行用户 user www-data; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 error_log /var/log/nginx/error.log; pid /var/run/nginx.pid;转载 2013-12-26 15:57:58 · 873 阅读 · 0 评论 -
解决编译出现的问题:configure: error: APR not found . Please read the documentation
#./configure --prefix……检查编辑环境时出现: checking for APR... no configure: error: APR not found . Please read the documentation 解决办法: 1.下载所需软件包: wget http://archive.apache.org/dist/apr/apr-1.4.5.转载 2014-01-16 16:38:27 · 1215 阅读 · 0 评论 -
Nginx的Rewrite重写规则
Nginx Rewrite规则相关指令 Nginx Rewrite规则相关指令有if、rewrite、set、return、break等,其中rewrite是最关键的指令。一个简单的Nginx Rewrite规则语法如下: rewrite ^/b/(.*)\.html /play.php?video=$1 break; 如果加上if语句,示例如下: if (!-转载 2014-04-23 15:15:28 · 1029 阅读 · 0 评论 -
修复Nginx 502错误:upstream sent too big header while reading response header from upstream
最近发现Nginx+Laravel 搭建的网站搜索某些关键字时返回502错误。查了一下Nginx的错误日志,发现如下错误[html] view plain copy2015/03/19 10:46:40 [error] 6412#0: *16436265 upstream sent too big header while reading response header from upstream...转载 2018-04-17 14:45:40 · 1528 阅读 · 0 评论
分享