nginx+php-fpm訪問報錯,只顯示access denied
nginx.conf中root是配置在server段內,“location /”之外,所以排除此錯誤可能性;
php-fpm中security.limit_extensions也不限制“.php”,所以排除此可能性;
最後,修改了php.ini,將cgi.fix_pathinfo從0改爲1,問題解決
nginx+php-fpm訪問報錯,只顯示access denied
nginx.conf中root是配置在server段內,“location /”之外,所以排除此錯誤可能性;
php-fpm中security.limit_extensions也不限制“.php”,所以排除此可能性;
最後,修改了php.ini,將cgi.fix_pathinfo從0改爲1,問題解決
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);