How to configure domain remap middleware in swift

asked 2019-07-02 03:13:04 -0500

updated 2019-07-04 03:03:41 -0500

Hello everyone!

I am testing domain remap feature but there are very few docs and I don't know how to do it rightly.

Here are some steps I did:

Step 1: add domain_recep into pipeline Step 2: run this command curl -i -H "X-Auth-Token: xxxxxxxxxxxxx" https://8981264773ec41cfbdbdf750b8c21...

And I get this response:

Could not resolve host:

How can I fix it? Thanks!

In example:

would be translated to:

I mean when I curl I get response: "Could not resolve host"

edit retag flag offensive close merge delete


I don’t have an answer, but you should edit your question to use the correct term remap. It’s documented at

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-02 18:37:41 -0500 )edit

I am sorry for my mistake. I don't unserstand this phrase "container names and account names must be DNS-compatible". Can you explain me?

Quang Vu gravatar imageQuang Vu ( 2019-07-02 20:50:06 -0500 )edit

I didn't even know the domain remap feature before I read your question :) I guess it means that the domain names you use must have DNS resolution. This is not the case in your example.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-03 02:33:08 -0500 )edit

Yes, but I don't know how to config dns resolution to access this url

While I curl any subdomain from aws s3 like:

I get Nosuchbucket response

Quang Vu gravatar imageQuang Vu ( 2019-07-03 03:08:05 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2019-07-03 04:39:55 -0500

updated 2019-07-04 03:08:47 -0500

Because I don't know too much about DNS, then I have had some mistakes. To solve this problem,

I use this command in case of public object: curl -i -X GET -H "Host: " -H "X-Auth-Token: aaaaaaaaaaaaaaa" http://xx.xx.xx.xx

And when I used accesskey and secretkey to authenticate private object with domain_remap, It failed

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-07-02 03:13:04 -0500

Seen: 105 times

Last updated: Jul 04 '19