Re: 有已粤载 index.php

Sergey Shepelev temotor 瘟 gmail.com
髟 嵝 12 18:33:16 MSD 2011


2011/4/12 kirpich <nginx-forum at nginx.us>:
> 陶捋 邢肆终 location 讼椅抛鲜
>
>
>    歭ocation / {
>      歩f ($request_filename != "index.php") {
>        歳ewrite ^(.*)$ /index.php break;
>       }
>
>      歠astcgi_pass 歱hpfarm;
>      歠astcgi_index 歩ndex.php;
>      歠astcgi_param 歋CRIPT_FILENAME
> /home/vhost/site$fastcgi_script_name;
>      歠astcgi_param 欴OCUMENT_ROOT  /home/vhost/site;
>      歩nclude    /etc/nginx/fastcgi_params;
>      歱roxy_redirect off;
>      歝lient_body_buffer_size 128k;
>      歠astcgi_connect_timeout 300;
>      歠astcgi_send_timeout 300;
>      歠astcgi_read_timeout 300;
>      歠astcgi_buffer_size   4M;
>      歠astcgi_buffers     4 4M;
>      歠astcgi_busy_buffers_size 8M;
>      歠astcgi_temp_file_write_size 50M;
>      歠astcgi_param  COBNUT_PATH   /home/vhost/Cobnut/;
>      歠astcgi_param  SITE_PATH    /home/vhost/site/;
>      歠astcgi_param  SITE_CONFIG_MAIN    歝onfig/conf.ini;
>      歠astcgi_param  SITE_CONFIG_REWRITE   config/prod.ini;
>      歠astcgi_param  SITE_NAME    site;
>      歠astcgi_param  TMP   /home/vhost/site/tmp/;
>      歠astcgi_temp_path /home/vhost/site/tmp/;
>      歠astcgi_param  NGINX_UPLOAD_PROGRESS_URL
> http://site_name/progress;
>      歵rack_uploads proxied 30s;
>    }
>
> nginx + php-fpm.
>
> 髁 琢疑廖 闻 邢南誓T 哨 诹 紫 粤松
> 紫 讼纹汕献 =(
>

蚺叟紊 奶 FastCGI 诹咨由 显 韵窍 哨 肆讼 信遗团挝鲜 埔攀妥弦
辛矣稍 找. 钆讼韵屹 捎邢特谡涝 PATH_INFO, 蜗  琢 徘 闻 咨奈.

鹣幸下帐耘 南铝咨载

fastcgi_param  REQUEST_URI        /index.php$request_uri;

邢犹 include fastcgi_params;

 啄下磷纤  酉着哉 Slava Kokorin.


鹣囊下瘟 晌葡彝撩裳 有捎伺 伊佑偬松 nginx-ru