我正在尝试使用 Nginx 和 php-fpm 配置我的网络服务器
,我之前在本地计算机和开发服务器中已成功配置,但现在在 AWS 中没有。
唯一的区别是我从生产服务器的源安装了 Nginx
它在我的 /var/log/nginx/error.log 中给出了这样的错误
2014/03/11 11:09:19 [error] 11138#0: *1 FastCGI sent in stderr: "Access to the script '/home/ambassador-portal/ambassador-api/web' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 202.62.16.225, server: brandapi.whatiwear.com, request: "GET /app_dev.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "brandapi.whatiwear.com", referrer: "http://brandapi.whatiwear.com/"
Run Code Online (Sandbox Code Playgroud)
虽然 php-fpm 中的错误日志没有给出错误
这是我的 nginx.conf
user root;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server { …Run Code Online (Sandbox Code Playgroud)