猿问

nginx access_log 显示访问 200,但是页面空白

域名:zengzhang.in,下面一个wordpress程序
nginx配置如下:
server{
listen80;
server_namezengzheng.in;
error_log/var/log/nginx/binge-error.log;
access_log/var/log/nginx/binge-access.log;
root/var/www/zengzhang.in/;
indexindex.phpindex.htmlindex.htm;
location/{
try_files$uri$uri/=404;
}
error_page404/404.html;
error_page500502503504/50x.html;
location=/50x.html{
root/usr/share/nginx/www;
}
location~\.php${
try_files$uri=404;
fastcgi_passunix:/var/run/php5-fpm.sock;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
includefastcgi_params;
}
}
部分访问日志如下:
115.231.100.106--[12/Jun/2015:08:21:01-0400]"GET/HTTP/1.1"20031"-""Mozilla/5.0(Macintosh;IntelMacOSX10_10_3)AppleWebKit/537.36(KHTML,likeGecko)Chrome/41.0.2272.118Safari/537.36"
115.231.100.106--[12/Jun/2015:08:21:02-0400]"GET/favicon.icoHTTP/1.1"20031"-""Mozilla/5.0(Macintosh;IntelMacOSX10_10_3)AppleWebKit/537.36(KHTML,likeGecko)Chrome/41.0.2272.118Safari/537.36"
101.226.73.30--[12/Jun/2015:08:21:31-0400]"GET/HTTP/1.1"20031"-""DNSPod-Monitor/2.0"
115.231.100.106--[12/Jun/2015:08:22:27-0400]"GET/HTTP/1.1"20031"-""Mozilla/5.0(Macintosh;IntelMacOSX10_10_3)AppleWebKit/537.36(KHTML,likeGecko)Chrome/41.0.2272.118Safari/537.36"
115.231.100.106--[12/Jun/2015:08:22:28-0400]"GET/favicon.icoHTTP/1.1"20031"-""Mozilla/5.0(Macintosh;IntelMacOSX10_10_3)AppleWebKit/537.36(KHTML,likeGecko)Chrome/41.0.2272.118Safari/537.36"
FFIVE
浏览 310回答 2
2回答

MYYA

1、请先检查你的index.php有没有问题,也许你关闭了所有错误输出,这是php解析出问题就导致空白页。2、你的try_files好像和我的不太一样,我的是这样样子,一直正常工作好几年了try_files$uri$uri//index.php?q=$uri&$args;
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答