首页 > 解决方案 > 通过后端仪表板上传 csv 文件时出现 nginx 错误 504 网关超时

问题描述

我一直在尝试通过我的 laravel 站点的后端仪表板上传一个 csv 文件,但它抛出了一个错误 504 gateway Timeout nginx 。(这在分期中非常有效)

在寻找解决方案时,我更新了以下参数。

在 php.ini --->

在 nginx 配置中--->

在检查 nginx /php 日志时,它没有在日志中显示任何错误,而且我也尝试过启用慢日志,但它仍然没有显示任何错误。

谁能帮我解决这个问题。

        location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
        fastcgi_read_timeout 1000s;
    client_max_body_size   100M;
    send_timeout 1000;
    keepalive_timeout  1000;

标签: phplaravelnginxphp-7.4http-status-code-504

解决方案


推荐阅读