thinkphp5 nginx配置
server {listen80;server_namewww.tp.com;set $web_root /www/www.tp.com/public;root $web_root;indexindex.php index.html;location / {index index.php index.html;autoindexoff;if (!-e $request_filename) {rewrite^(.*)$/index.php?s=/$1last;}} location ~ .php { fastcgi_pass 127.0.0.1:9000; fastcgi_indexindex.php; fastcgi_split_path_info^((?U).+\.php)(/?.+)$; fastcgi_paramPATH_INFO $fastcgi_path_info; fastcgi_paramSCRIPT_FILENAME$web_root$fastcgi_script_name; fastcgi_paramPATH_TRANSLATED$web_root$fastcgi_path_info; includefastcgi_params;}}