Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php ECS的Nginx给出';未指定输入文件';_Php_Nginx_Amazon Ecs - Fatal编程技术网

Php ECS的Nginx给出';未指定输入文件';

Php ECS的Nginx给出';未指定输入文件';,php,nginx,amazon-ecs,Php,Nginx,Amazon Ecs,我使用nginx和drupal部署了一个docker容器,在我的本地计算机上一切正常,但在使用fargate的Amazon ECS上,它只显示“未指定输入文件” 下面是如何启动default.conf server { listen 80; ## listen for ipv4; this line is default and implied listen [::]:80 default ipv6only=on; ## listen for ipv6 root

我使用nginx和drupal部署了一个docker容器,在我的本地计算机上一切正常,但在使用fargate的Amazon ECS上,它只显示“未指定输入文件”

下面是如何启动default.conf

server {
    listen   80; ## listen for ipv4; this line is default and implied
    listen   [::]:80 default ipv6only=on; ## listen for ipv6

    root /var/www/app/;
    index index.php index.html index.htm;

    # Make site accessible from http://localhost/
    server_name _;

    sendfile off;
    server_tokens off;

    # Add stdout logging
    error_log /dev/stdout info;
    access_log /dev/stdout;

    # reduce the data that needs to be sent over network
    gzip on;
    gzip_min_length 10240;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/plain text/css text/xml application/json text/javascript application/x-javascript  application/xml;
    gzip_disable "MSIE [1-6]\.";

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to index.html
        try_files $uri /index.php?$query_string;
    }

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

看起来像是php cgi问题。请参见php cgi问题。看见