動(dòng)態(tài)頁(yè)面。
樣例配置如下:
#cat /usr/local/nginx/conf/nginx.conf
……
server{
listen80;
server_namelocalhost;
location/{
//識(shí)別靜態(tài)頁(yè)面(除了 php外的其他所有頁(yè)面)
roothtml;
indexindex.html;
}
location~*.php${
//識(shí)別動(dòng)態(tài)頁(yè)面
roothtml;
fastCGI_pass127.0.0.1:9000;
}
}