Nginx代理MinIO时出现“Access Denied“错误

MinIO与Nginx集成时,如果出现"Access Denied"错误,通常意味着Nginx代理的请求没有被正确地转发到MinIO服务。

出现错误:

xml 复制代码
<Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied.</Message>
    <Key>test/1.jpg</Key>
    <BucketName>test1</BucketName>
    <Resource>/test1/test/1.jpg</Resource>
    <RequestId>17C8FCF0E2325480</RequestId>
    <HostId>1379dddc-2b73-49e7-b13d-a8a937600002</HostId>
</Error>

解决方法:

xml 复制代码
server {
    listen       80;
    server_name  localhost;
    
    location /桶命名/ {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $http_host;
        proxy_connect_timeout 300;    
        # Default is HTTP/1, keepalive is only enabled in HTTP/1.1
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        chunked_transfer_encoding off;
		#MinIO访问地址
        proxy_pass http://localhost:9000;
    }
}
相关推荐
c30%001 小时前
内网渗透——红日靶场五
运维·服务器
宇钶宇夕2 小时前
EPLAN 电气制图:建立自己的部件库,添加部件-加SQL Server安装教程(三)上
运维·服务器·数据库·程序人生·自动化
susu10830189112 小时前
Debian 11 Bullseye 在线安装docker
运维·docker·debian
love530love3 小时前
Docker 稳定运行与存储优化全攻略(含可视化指南)
运维·人工智能·windows·docker·容器
岁岁岁平安3 小时前
CentOS-7-x86_64解决:使用NAT模式无法ping通www.baidu.com或无法ping 8.8.8.8问题。
linux·运维·centos·centos-7
运维小贺3 小时前
各服务器厂商调整BIOS睿频教程
linux·运维·服务器·性能优化
网硕互联的小客服3 小时前
如何排查服务器中已经存在的后门程序?
运维·服务器·github
人生匆匆3 小时前
docker进入启动失败的容器
运维·docker·容器
Fanmeang3 小时前
OSPF路由过滤
运维·网络·华为·ip·路由·ospf·路由过滤
★Orange★4 小时前
Linux Kernel kfifo 实现和巧妙设计
linux·运维·算法