黯淡燚 发表于 2015-11-4 00:19:27

Nginx配置ci

重写后 还是报404
配置如下
server {
    listen   8086;
    server_name localhost;

    root/testserver/www/rongmomo/wechat/web/wangwei;

    index index.php;
    try_files $uri $uri/ @rewrite;
    location @rewrite {
      rewrite ^/(.*)$ /index.php?_url=/$1;
    }

    location ~ \.php {
      include fastcgi_params;
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_indexindex.php;
      fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
    }
}
希望大神指点
页: [1]
查看完整版本: Nginx配置ci