当 roundcube 从 oauth 服务重定向时,nginx 会抛出 404 not found。我已将 oauth 提供程序启用为通用并设置其他必填字段。另外,nginx 日志显示“/var/www/html/index.php/login/oauth”未找到此文件/文件夹。
将以下块添加到您的 nginx 配置中:
location /index.php/login/oauth {
rewrite ^/index\.php/login/oauth$ /program/actions/login/oauth.php last;
}