Actions
Feature #15975
closedRGW bucket name logic should fall back to HTTP hostname
% Done:
0%
Source:
other
Tags:
staticsites
Backport:
jewel
Reviewed:
Affected Versions:
Pull request ID:
Description
The VHost-style bucket logic presently requires that there is an accessible CNAME entry, that has the name of a bucket on the right hand side, eg:
www.bucket.com. IN CNAME www.bucket.com.s3.storage.com. demo.bucket.com. IN CNAME some-other-bucket-name.s3.storage.com.
It does NOT work for the following cases:
1.
DNS entries directly to the storage.
www.bucket.com. IN CNAME s3.storage.com.
2.
Root entries of domains, where CNAME cannot be used. This is common in static website hosting.
bucket.com IN SOA ( ... ) bucket.com IN NS ( ... ) bucket.com IN A 1.2.3.4 # Same IP as s3.storage.com
3.
Private DNS where from the address is resolvable from the perspective of the client, but NOT the RGW instance.
For these cases, the bucket name logic SHOULD fall back to trying to use value of the HTTP Host header as the bucket name, with no modification.
Actions