]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: Allow to serve Swift off the URL root 8093/head
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Mon, 14 Mar 2016 15:29:44 +0000 (09:29 -0600)
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>
Mon, 14 Mar 2016 15:29:44 +0000 (09:29 -0600)
commitbb9f5ab1b42a78d015ca464da058a4982f09ceb9
treeef6887c8be254932069d923f011f297bfcaa26a2
parentaf0e063576e3925a2ad04e2d48ccc65237d83a03
rgw: Allow to serve Swift off the URL root

In most public clouds OpenStack Swift URL is based on the tree
root, like:
  https://swift.domain.com/v1/AUTH_tenant

Our convention is to have a path, like:
  https://domain.com/swift/v1/AUTH_tenant

The path is configurable, but even if someone manages to set
an empty prefix, we print headers with %s/%s/v1 where the extra
slash is baked in. In addition, the empty prefix means "use the
/swift default".

To provide compatibility, this patch uses a trick. The empty
prefix remains to mean "/swift", but then we use "/" (one slash)
to create the needed empty prefix.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
doc/radosgw/config-ref.rst
src/rgw/rgw_swift_auth.cc