Nginx白色页面,无错误

Nginx白色页面,无错误,nginx,Nginx,我是nginx的新手。我正在尝试将kubernetes与nginx一起使用。但我得到一张空白页,没有错误。。。我能做什么? 以下是我的配置: server { listen 80; root /var/www/project/web; location / { # try to serve file directly, fallback to app.php try_files $uri /app.php$is_args$args;

我是nginx的新手。我正在尝试将kubernetes与nginx一起使用。但我得到一张空白页,没有错误。。。我能做什么? 以下是我的配置:

server {
    listen   80;
    root /var/www/project/web;

    location / {
        # try to serve file directly, fallback to app.php
        try_files $uri /app.php$is_args$args;
    }
    # DEV
    # This rule should only be placed on your development environment
    # In production, don't include this and don't deploy app_dev.php or config.php
    location ~ ^/(app_dev|config)\.php(/|$) {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    # PROD
    location ~ ^/app\.php(/|$) {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

        # Prevents URIs that include the front controller. This will 404:
        # http://domain.tld/app.php/some-path
        # Remove the internal directive to allow URIs like this
        #internal;
    }

    error_log /var/log/nginx/project_error.log;
    access_log /var/log/nginx/project_access.log;
}
编辑:

我在docker compose中运行它,现在我在启动时得到:

web_1 |*重新启动PHP5 FastCGI Process Manager PHP5 fpm

编辑2

connect()到unix:/var/run/php/php7.0-fpm.sock失败(2:没有这样的文件 或目录)连接到上游时


访问日志中有什么东西吗?没有。它在库伯内特斯之外工作吗?