NGINX配置PHP解析

<?php 
    phpinfo(); 
?>

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

猜你喜欢

转载自www.cnblogs.com/kazihuo/p/9326581.html