linux - 带有 .pdf 文件的 Nginx 错误网关
问题描述
我正在尝试在Nginx中上传/下载一个.pdf文件,但它返回错误502,在处理之前,程序在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中尝试了其他帖子,但没有任何效果。
谢谢
解决方案
我试过了,而且工作
sudo chown myusername:www-data
推荐阅读
- python - Pandas 无法识别文档中的列
- amazon-dynamodb - 在 Javascript 中使用分区键和二级索引查询 DynamoDB
- python - 赫斯顿模型和参数估计
- html - HTML 中的正确分层
- r - 使用 Shiny ActionButton 选择所有行或将所有行添加到当前视图中的选择中,并在 DT 数据表中进行过滤
- linux - 用于检查多个服务器中的连接性的 bash 脚本(避免 ECDSA 密钥,您确定要...)
- html - 没有 routerLink 的 ion-item 的悬停效果
- c++ - 与“if constexpr”一起使用的编译时间消息(在预处理器之后)
- python - 使用正则表达式从文本中提取键和值
- ruby - (Ruby)while循环停止我的代码运行