我刚刚在子域中安装了此网络邮件,并且输入正常,但是当我打开收件箱时,所有内容都显示为空白,并出现红色警报,告诉我没有连接到服务器,但是,检测到有 3 封电子邮件未读:
Nginx 日志错误:
2017/06/06 10:14:41 [error] 3057#3057: *3050 open() "/srv/www/correo/services/ajax.php/horde/topbarUpdate" failed (20: Not a directory), client: 195.16.143.6, server: correo.domain.com, request: "POST /services/ajax.php/horde/topbarUpdate HTTP/1.1", host: "correo.domain.com", referrer: "https://correo.domain.com/imp/dynamic.php?page=mailbox"
配置:
Nginx 设置:
` 位置 / { try_files $uri $uri/ /rampage.php?$args; }
#location / {
#}
location ~ \.php {
#fastcgi_param PHP_VALUE "cgi.fix_pathinfo=1";
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/correo.sock;
#fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#root /srv/www/correo/;
#fastcgi_param HTTPS on;
fastcgi_index index.php;
include fastcgi_params;
# pvanthony added this because of timeout problem when
# importing addressbook.
#fastcgi_connect_timeout 300s;
#fastcgi_send_timeout 300s;
#fastcgi_read_timeout 300s;
#fastcgi_buffer_size 128k;
#fastcgi_buffers 256 4k;
#fastcgi_busy_buffers_size 256k;
#fastcgi_temp_file_write_size 256k;
#fastcgi_intercept_errors on;
}
location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
root /srv/www/correo/;
}
`
在 /srv/www/correo/imp/config/backends.php 中,我将端口 443 更改为 993,这是我在 postfix 中为 IMAP 配置的端口
答案1
我最后重启了服务器并解决了这个问题