Skip to content

Commit edc38b1

Browse files
authored
Merge pull request ceph#60884 from zdover23/wip-doc-2024-11-29-radosgw-s3-common
doc/radosgw: update rgw_dns_name doc Reviewed-by: Anthony D'Atri <[email protected]>
2 parents 739139b + 45ff7e3 commit edc38b1

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

doc/radosgw/s3/commons.rst

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,47 @@
77

88
Bucket and Host Name
99
--------------------
10-
There are two different modes of accessing the buckets. The first (preferred) method
11-
identifies the bucket as the top-level directory in the URI. ::
10+
There are two different modes of accessing buckets. The first method identifies
11+
the bucket as the top-level directory in the URI::
1212

1313
GET /mybucket HTTP/1.1
1414
Host: cname.domain.com
1515

16-
The second method identifies the bucket via a virtual bucket host name. For example::
16+
Most S3 clients nowadays rely on vhost-style access. The desired bucket is
17+
indicated by a DNS FQDN. For example::
1718

1819
GET / HTTP/1.1
1920
Host: mybucket.cname.domain.com
2021

21-
To configure virtual hosted buckets, you can either set ``rgw_dns_name = cname.domain.com`` in ceph.conf, or add ``cname.domain.com`` to the list of ``hostnames`` in your zonegroup configuration. See `Ceph Object Gateway - Multisite Configuration`_ for more on zonegroups.
22+
The second method is deprecated by AWS. See the `Amazon S3 Path Deprecation
23+
Plan`_ for more information.
2224

23-
.. tip:: We prefer the first method, because the second method requires expensive domain certification and DNS wild cards.
25+
To configure virtual hosted buckets, you can either set ``rgw_dns_name =
26+
cname.domain.com`` in ``ceph.conf`` or add ``cname.domain.com`` to the list of
27+
``hostnames`` in your zonegroup configuration. See `Ceph Object Gateway -
28+
Multisite Configuration`_ for more on zonegroups.
29+
30+
Here is an example of a ``ceph config set`` comamnd that sets ``rgw_dns_name``
31+
to ``cname.domain.com``:
32+
33+
.. prompt:: bash $
34+
35+
ceph config set client.rgw.<ceph authx client for rgw> rgw_dns_name cname.domain.dom
36+
37+
.. tip:: You can define multiple hostnames directly with the
38+
:confval:`rgw_dns_name` parameter.
39+
40+
.. tip:: When SSL is enabled, the certificates must use a wildcard in the
41+
domain name in order to match the bucket subdomains.
42+
43+
.. note:: When Ceph Object Gateways are behind a proxy, use the proxy's DNS
44+
name instead. Then you can use ``ceph config set client.rgw`` to set the DNS
45+
name for all instances.
46+
47+
.. note:: The static website view for the `s3website` API must be served under
48+
a different domain name. This is configured separately from
49+
:confval:`rgw_dns_name`, in :confval:`rgw_dns_s3website_name`.
2450

25-
.. tip:: You can define multiple hostname directly with the :confval:`rgw_dns_name` parameter.
2651

2752
Common Request Headers
2853
----------------------
@@ -111,3 +136,4 @@ Common Response Status
111136
+---------------+-----------------------------------+
112137

113138
.. _`Ceph Object Gateway - Multisite Configuration`: ../../multisite
139+
.. _`Amazon S3 Path Deprecation Plan`: https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/

0 commit comments

Comments
 (0)