【发布时间】:2015-08-27 14:03:02
【问题描述】:
我使用命令从 S3 客户端创建公共存储桶:
s3cmd mb s3://public_bucket --acl-public
Bucket 's3://public_bucket/' created
我可以从客户端(s3cmd ls)和 rados gw(使用 radosgw-admin 存储桶列表)看到这个存储桶。 但是当我使用 API 向服务器发送请求时,总是收到 404 错误。为什么会出现这种情况? Apache,fcgi 工作正常。
我的要求:
GET /public-bucket?max-keys=15 HTTP/1.1
Host: ceph_gw.objectstore.com
另外,请求
GET / HTTP/1.1
Host: ceph_gw.objectstore.com
给我回复
HTTP/1.1 200 OK
Date: Thu, 27 Aug 2015 13:20:21 GMT
Server: Apache/2.2.15 (CentOS)
Connection: close
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?><ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>anonymous</ID><DisplayName></DisplayName></Owner><Buckets></Buckets></ListAllMyBucketsResult>
【问题讨论】: