geomen 发表于 2011-5-27 18:27:03



server
{
    listen       80;
    server_namewww.xxxx.com;//网站地址   
    index index.html index.htm index.php;
    root/data/www/mmzz;    //网站目录
    autoindex on;
location / {
      root/data/www/mmzz;
      index index.html index.htm index.php;
      rewrite ^/$ /index.php last;
      rewrite ^/(?!index.php|robots.txt|images|js|styles|css)(.*)$ /index.php/$1 last;
}
location ~ ^(.+.php)(.*)$ {
                root       /data/www/mmzz;    //网站目录
                fastcgi_index   index.php;
                fastcgi_split_path_info ^(.+.php)(.*)$;
                fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param   PATH_INFO               $fastcgi_path_info;
                fastcgi_param   PATH_TRANSLATED $document_root$fastcgi_path_info;
                fastcgi_pass    127.0.0.1:9000;
                include fastcgi_params;
    }
}


我在linux下的配置,你改改看能不能用哈~

davidx 发表于 2011-5-27 18:44:08

赞Hex。这么热心助人,彻底感动:victory:

丽丽 发表于 2011-12-24 13:44:09

我也是这种情况 真麻烦 还没配置好呢
页: 1 [2]
查看完整版本: 急求高手指点如何彻底配置nginx下CI,教程上根本没说