
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 · 2060 阅读 · 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 · 2793 阅读 · 0 评论 -
LNMP环境搭建
LNMP || 安装所需各种依赖包yum –y installgcc 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 · 957 阅读 · 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 · 849 阅读 · 0 评论 -
解决编译出现的问题:configure: error: APR not found . Please read the documentation
#./configure --prefix……检查编辑环境时出现:checking for APR... noconfigure: 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 · 1171 阅读 · 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 · 988 阅读 · 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 · 1484 阅读 · 0 评论