Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,请问我上传文件之后点击访问链接nginx为什么直接报错404?下载链接正常 #93

Open
gliese436-b opened this issue May 20, 2020 · 4 comments

Comments

@gliese436-b
Copy link

image

@peinhu
Copy link
Owner

peinhu commented May 21, 2020

没人反映过这个问题,nginx我试过没问题的,是不是你nginx配置或者是开发环境的问题?可以换个全新环境试试。或者路由冲突了,有类似的其他路由?

@peinhu
Copy link
Owner

peinhu commented May 21, 2020

你的laravel版本多少?贴一下,高版本可能会有不兼容改动,我试试能不能复现。

@mengdodo
Copy link

@peinhu 我去我也遇到这问题了,宝塔安装的lnmp环境,当访问后缀类似.jpg时没有走laravel路由,直接在nginx层面就给拦下来了,这个跟你这个包没有关系,是nginx配置的问题

@mengdodo
Copy link

如果使用的宝塔一键安装,可以参考下

vim /www/server/panel/vhost/nginx/你的站点配置文件.conf
删除如下配置

    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
        error_log off;
        access_log /dev/null;
    }

重启nginx即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants