NGINX位于网络服务器前面时无法上传

时间:2019-06-01 22:12:49

标签: nginx

我有一个可以接受文件上传的Web服务器,当客户端不使用NGINX的情况下直接访问它时,它可以正常工作。

NGINX位于前面,上传文件似乎没有通过NGINX。

/ etc / nginx / sites-enabled / defaul

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            #try_files $uri $uri/ =404;
            proxy_pass http://localhost:8080;
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-For $remote_addr;
            client_max_body_size 0;
    }

上面,代理的代码段传递到了基础Web服务器。这有什么问题吗?

0 个答案:

没有答案
相关问题