问题:

nginx报错

FastCGI sent in stderr: "Access to the script '/var/www/html//phpmyadmin/setup/styles.css' has been denied (see security.limit_extensions)"

无法访问目录下的html静态页


解决:

编辑

/etc/php-fpm.d/www.conf 加上

security.limit_extensions = .php .php3 .php4 .php5 .html .htm


原文:

https://stackoverflow.com/questions/22324964/nginx-error-fastcgi-sent-in-stderr-access-to-the-script-folder-has-been-deni