nginx 접근. html 를 통 해 Access Denied 알림 이 나타 나 면 어떻게 해결 합 니까?

1166 단어
  /usr/local/nginx/logs/error.log

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

         security.limit_extensions      。

          5.3.9  ,php         "security.limit_extensions",              ".php"   ,                。

        :

  /usr/local/php/etc/php-fpm.conf,  security.limit_extensions     :

security.limit_extensions=.php .html .js .css .jpg .jpeg .gif .png .htm#(        )

        !

CGI(Common Gateway Interface)  WWW           ,           。
CGI       (CGI  ) WEB          ,  CGI   Web            
Nginx     php     
nginx.conf   :
server{
   location ~  .php${  #location    ~:       ~*:       .php$:.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;
  }
  location ~* .*index.html${
     rewrite .* /test.html  #rewrite regex replacement:rewrite       
  }
}

좋은 웹페이지 즐겨찾기