# Getting 404 with multisite enabled on subdomains with docker

**URL:** https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787
**Category:** Self-hosting
**Created:** [November 26, 2022, 12:36pm UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787 "2022-11-26T12:36:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Salman\_Haider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salman_haider/32/251323_2.png) [@Salman\_Haider](https://meta.discourse.org/u/Salman_Haider)
#### Post date: [November 26, 2022, 12:36pm UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787/1 "2022-11-26T12:36:25Z")

</div>

Gettting 404 on [subdomain1.example.com](http://subdomain1.example.com) with multisite configuration. while subdomain give while setup is working fine [subdomain.example.com](http://subdomain.example.com)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 27, 2022, 12:48am UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787/2 "2022-11-27T00:48:03Z")

</div>

You’ll need to say more about your configuration. Sharing the actual domain names could help. It’s most likely a dns issue. But you should also share your multisite.yml file (with secrets redacted)

---

<div class="post-metadata">

### Author: ![Salman\_Haider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salman_haider/32/251323_2.png) [@Salman\_Haider](https://meta.discourse.org/u/Salman_Haider)
#### Post date: [November 27, 2022, 11:02am UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787/3 "2022-11-27T11:02:22Z")

</div>

Thanks @pfaffman. Please find below details

Multisite.yml

```plaintext
hindi:
  adapter: postgresql
  database: hindi
  db_id: 2
  pool: 5
  timeout: 5000
  host_names:
    - "hi.muftiz"
 
turkish:
  adapter: postgresql
  database: turkish
  db_id: 3
  pool: 5
  timeout: 5000
  host_names:
    - "tr.muftiz"

urdu:
  adapter: postgresql
  database: urdu
  db_id: 3
  pool: 5
  timeout: 5000
  host_names:
    - "ur.muftiz"

"en.muftiz.com" is the main/default
```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 27, 2022, 12:13pm UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787/4 "2022-11-27T12:13:19Z")

</div>

You need to add `.com` to the host names. It should be the full domain name (fqdn).

---

<div class="post-metadata">

### Author: ![Salman\_Haider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/salman_haider/32/251323_2.png) [@Salman\_Haider](https://meta.discourse.org/u/Salman_Haider)
#### Post date: [November 27, 2022, 6:51pm UTC](https://meta.discourse.org/t/getting-404-with-multisite-enabled-on-subdomains-with-docker/246787/5 "2022-11-27T18:51:29Z")

</div>

Thanks Works like charm!
