# Docker-compose installation problem - 'bad host' from web server

**URL:** <https://hub.mender.io/t/docker-compose-installation-problem-bad-host-from-web-server/6583>\
**Category:** General Discussions\
**Created:** [February 23, 2024, 11:21pm UTC](https://hub.mender.io/t/docker-compose-installation-problem-bad-host-from-web-server/6583 "2024-02-23T23:21:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig-Anderson-Ins](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Craig-Anderson-Ins](https://hub.mender.io/u/Craig-Anderson-Ins)\
**Post date:** [February 23, 2024, 11:21pm UTC](https://hub.mender.io/t/docker-compose-installation-problem-bad-host-from-web-server/6583/1 "2024-02-23T23:21:21Z")

</div>

I’m following the docker-compose [installation](https://docs.mender.io/3.4/server-installation/installation-with-docker-compose).

All of the docker containers are running, and I verified that the host name in the config files matches my hostname.

When I connect to the web server, I get ‘Bad Host’.

The log file from the traefix container is:

“GET / HTTP/2.0” 500 9 “-” “-” 1 “hostname-checker@file” “-” 5ms

Any hints?

---

<div class="post-metadata">

**Author:** ![ColinFinck](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/colinfinck/32/2172_2.png) [@ColinFinck](https://hub.mender.io/u/ColinFinck)\
**Post date:** [April 25, 2024, 4:04pm UTC](https://hub.mender.io/t/docker-compose-installation-problem-bad-host-from-web-server/6583/2 "2024-04-25T16:04:28Z")

</div>

I just had the same problem when upgrading a docker-compose setup from Mender 2.x to the latest 3.7.3 release.

Despite following the instructions laid out in the prod.yml file, I always got “Bad Host” when trying to access the S3 server at [s3.myhost.com](http://s3.myhost.com).  
Turned out that you now need to add [s3.myhost.com](http://s3.myhost.com) to ALLOWED\_HOSTS next to [mender.myhost.com](http://mender.myhost.com).  
My full line now is:

ALLOWED\_HOSTS: [mender.myhost.com](http://mender.myhost.com),[s3.myhost.com](http://s3.myhost.com)

Hope that helps somebody else who runs into this problem.
