给出nginx + php-fpm设置,如:
location ~ \.php$ {
try_files $uri =404;
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
如果我将fastcgi_param更改为以下内容,工作得很好:
fastcgi_param SCRIPT_FILENAME $document_root/route.php?r=$request_uri;
POST参数和cookie以及其他所有内容是否也透明地传递给route.php?