|
楼主 |
发表于 2012-2-8 08:44:42
|
显示全部楼层
huboo82 发表于 2012-2-7 19:09
这是我正在用的,虚拟机,lnmp
server {
listen 80;
server_name localhost;
location / {
root /u/game/html/www;
index index.php index.html index.htm;
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
访问
http://localhost/account/get
还是出错:
2012/02/08 08:49:29 [error] 23398#0: *2061 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/account/get", client: 127.0.0.1, server: localhost, request: "GET /account/get HTTP/1.1", host: "127.0.0.1:80"
唉~~~
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi.conf;
}
} |
|