This commit is contained in:
John Dickinson 2010-11-03 15:17:27 -05:00
parent 559fc110a7
commit 344cd1c45d
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ use = egg:swift#domain_remap
use = egg:swift#catch_errors
[filter:cname_lookup]
# Note: this middleware requires python-dnspython
use = egg:swift#cname_lookup
# storage_domain = example.com
# lookup_depth = 1

View File

@ -31,10 +31,10 @@ class CNAMELookupMiddleware(object):
"""
Middleware that translates container and account parts of a domain to
path parameters that the proxy server understands.
container.account.storageurl/object gets translated to
container.account.storageurl/path_root/account/container/object
account.storageurl/path_root/container/object gets translated to
account.storageurl/path_root/account/container/object
"""