【问题标题】:Nginx Bad Gateway with .pdf files带有 .pdf 文件的 Nginx 错误网关
【发布时间】:2020-06-09 18:59:26
【问题描述】:

我正在尝试在Nginx中上传/下载一个.pdf文件,但是它返回错误502,在proccess之前,程序在mysql中插入数据,并且它是正常的,只有在尝试上传文件时。

/etc/nginx/sites-available/projectexample

server {
 listen 80;
 server_name xxx.xx.xxx.xxx;

 location / {
  uwsgi_pass unix:///home/user/projectexample/projectexample.sock
  include uwsgi_params:
 }
}

我在 stackoverflow 中尝试过其他帖子,但没有任何效果。

谢谢

【问题讨论】:

    标签: linux nginx bad-gateway


    【解决方案1】:

    我试过了,效果很好

    sudo chown myusername:www-data
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-04
      • 2020-06-29
      • 1970-01-01
      • 2014-12-22
      • 1970-01-01
      • 1970-01-01
      • 2016-01-22
      • 2017-06-13
      相关资源
      最近更新 更多