首页 > 代码库 > Nginx学习笔记3--Nginx和PHP(fastCGI)的配置和优化

Nginx学习笔记3--Nginx和PHP(fastCGI)的配置和优化

php和nginx的配置

server{  root html;  listen 80;  server_name a.com;  index index.php index.html ;     location ~ \.php$ {            fastcgi_pass   127.0.0.1:9000;            fastcgi_index  index.php;            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;            include        fastcgi_params;        }}

 

Nginx学习笔记3--Nginx和PHP(fastCGI)的配置和优化