Static hosting: Bad domain in host header
... / Static hosting: Bad domai...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Static hosting: Bad domain in host header

by
KacperW
Created on 2019-06-04 19:51:12 (edited on 2024-09-04 14:23:13) in Object Storage-old

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.


Replies are currently disabled for this question.