码迷,mamicode.com
首页 > 其他好文 > 详细

当nginx 500 伪静态错误时,记录解决方法rewrite or internal redirection cycle while processing

时间:2015-12-05 00:20:38      阅读:2930      评论:0      收藏:0      [点我收藏+]

标签:

错误日志::rewrite or internal redirection cycle while processing "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/user/logout", client: 127.0.0.1, server: gaomysion.com, request: "GET /user/logout HTTP/1.1", host: "gaomysion.com", referrer: "http://gaomysion.com/"

 

 

server {

listen 80;
server_name gaomysion.com;
root D:/work/wampwww/www/football;
index index.php index.html index.htm;


location / {

if (-f $request_filename) {
expires max;
break;
}

if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}

location = /50x.html {
root /var/www/nginx-default;
}

location /index.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME D:/work/wampwww/www/football/index.php;
include fastcgi_params;

fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}

当nginx 500 伪静态错误时,记录解决方法rewrite or internal redirection cycle while processing

标签:

原文地址:http://www.cnblogs.com/gaomysion/p/5020823.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!