Nginx支持PHP

在nginx.conf 配置文件中添加:

location ~ \.php$ {
        root        html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; 
        include        fastcgi_params;
         }

猜你喜欢

转载自blog.csdn.net/qq_35255775/article/details/83995657