好看的皮囊千篇一律,有趣的灵魂万里挑一。
2017-2-26
php-fpm在nginx下的配置,总结一下: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; }
其中$document_root是新修改的。
这一行也要编辑,增加index.php为默认入口
location / { root html; index index.html index.htm index.php; }