nginx上的Zend应用程序返回带有CONNECTION_ERROR的空白页



我正在尝试设置一个作为生产副本的开发服务器。那里安装了PHP/Zond应用程序,由nginx web服务器提供服务。我已经配置了nginx和应用程序。但当连接到应用程序时,我会得到一个只有此文本的空页面";CONNECTION_ERROR";。

你可以在这里看到。http://...不再:(

问题是nginxerror.log什么也没说。access.log显示如下:

[17/Nov/2020:20:15:56 +0000] "GET /archipelago/index/login/ HTTP/1.1" 200 47 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0"

应用程序日志根本没有任何信息。因此,应用程序似乎没有返回CONNECTION_ERROR。这是从哪里来的???!!!

有人能告诉我们如何调试吗?也许nginx-conf会有所帮助?

app.conf:

location /archipelago {
alias /opt/bitnami/archipelago/www/public;
if (-f $request_filename) {
break;
}
rewrite (.*) /archipelago/index.php?$args;
location ~ /archipelago/(.+.php)$ {
alias /opt/bitnami/archipelago/www/public/$1;
include "/opt/bitnami/nginx/conf/bitnami/php-fpm.conf";
include "/opt/bitnami/nginx/conf/bitnami/protect-hidden-files.conf";
}
}

php-fpm.conf:

index index.html index.htm $yii_bootstrap;
set $yii_bootstrap "index.php";
location ~ .php {
fastcgi_split_path_info  ^(.+.php)(.*)$;
#let yii catch the calls to unexising PHP files
set $fsn /$yii_bootstrap;
if (-f $document_root$fastcgi_script_name){
set $fsn $fastcgi_script_name;
}
fastcgi_read_timeout 300;
fastcgi_pass   unix:/opt/bitnami/php/var/run/www.sock;
include fastcgi_params;
fastcgi_param  SCRIPT_FILENAME  $document_root$fsn;
#PATH_INFO and PATH_TRANSLATED can be omitted, but RFC 3875 specifies them for CGI
fastcgi_param  PATH_INFO        $fastcgi_path_info;
fastcgi_param  PATH_TRANSLATED  $document_root$fsn;
}

无论看起来多么奇怪,CONNECTION_ERROR都是数据库访问的问题。:(

仍然很难想象为什么这没有记录在应用程序日志中!应用程序返回的只是带有CONNECTION_ERROR的html。

如果您看到这个错误,您可能认为DB访问应该是第一个检查的,但我确信DB用户是正确的。仍然不确定DB为什么不接受它。

最新更新