OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

Static hosting: Bad domain in host header


#1

Hello,
I have created the object storage container and setup required CNAME DNS entry for www. subdomain (hosted in OVH as well).

However, when I enter the url (www.example.org), I get the response mentioned in the title: “Bad domain in host header”.

Storage container doesn’t contain any forbidden characters - it’s just “staticsite”.

The container is hosted in WAW1 datacenter.

From the source code of openstacks’ swift (https://github.com/openstack/swift/blob/master/swift/common/middleware/domain_remap.py) I can see that it may be caused either by incorrect container name or misconfiguration on servers side.

Are there any workarounds or ways to resolve such issue? I have already opened a ticket. Just hoping for any other response.

Thanks.

Edit: Alright, I’ve just tried DE1 datacenter and it works correctly now. Seems to be misconfigured on OVHs side.