# Chatmail and Static Website on Same Server

**URL:** <https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110>\
**Category:** Chatmail Relays\
**Tags:** server-config, chatmail\
**Created:** [April 24, 2026, 7:25pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110 "2026-04-24T19:25:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![untoasted-duvet](https://forum.delta.chat/user_avatar/forum.delta.chat/untoasted-duvet/32/3379_2.png) [@untoasted-duvet](https://forum.delta.chat/u/untoasted-duvet)\
**Post date:** [April 24, 2026, 7:25pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/1 "2026-04-24T19:25:45Z")

</div>

I set up a chatmail relay on a subdomain, [chat.example.com](http://chat.example.com). I skipped uploading a webpage by setting the `www_folder` value to `disabled`.

I would like to use the same server to host a static website on the root domain, [example.com](http://example.com). Is it just a matter of modifying the nginx config file to add my root domain in there? I feel like that would be too simple.

Thank you!

---

<div class="post-metadata">

**Author:** ![untoasted-duvet](https://forum.delta.chat/user_avatar/forum.delta.chat/untoasted-duvet/32/3379_2.png) [@untoasted-duvet](https://forum.delta.chat/u/untoasted-duvet)\
**Post date:** [April 25, 2026, 2:18am UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/2 "2026-04-25T02:18:58Z")

</div>

Turns out it just might be that simple! I’ve added a new `server` block with the root domain and it is serving static content over port 80. Hoping when I generate some certificates that it doesn’t mess with any of the chatmail certs.

---

<div class="post-metadata">

**Author:** ![untoasted-duvet](https://forum.delta.chat/user_avatar/forum.delta.chat/untoasted-duvet/32/3379_2.png) [@untoasted-duvet](https://forum.delta.chat/u/untoasted-duvet)\
**Post date:** [May 6, 2026, 1:12am UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/3 "2026-05-06T01:12:31Z")

</div>

I ended up moving the static site off the chatmail relay. Technically not supported and also I didn’t want to break anything now that the relay was working.

---

<div class="post-metadata">

**Author:** ![bespinas](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/13edae/32.png) [@bespinas](https://forum.delta.chat/u/bespinas)\
**Post date:** [May 16, 2026, 11:10am UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/4 "2026-05-16T11:10:06Z")

</div>

Hello!

Ohhh, I’m also hosting a static website on a server and a chatmail relay on another. I wanted to have everything in a single server, but as you say these two things seem to clash with each other.

Thanks for sharing your insights!

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [May 18, 2026, 2:16pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/5 "2026-05-18T14:16:09Z")

</div>

This is really unfortunate for self-hosting, causing duplicated hosting effort and needless energy usage.

---

<div class="post-metadata">

**Author:** ![untoasted-duvet](https://forum.delta.chat/user_avatar/forum.delta.chat/untoasted-duvet/32/3379_2.png) [@untoasted-duvet](https://forum.delta.chat/u/untoasted-duvet)\
**Post date:** [August 2, 2026, 3:02pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/6 "2026-08-02T15:02:46Z")

</div>

For static sites, the hosting effort is quite minimal. I’m using Bunny CDN to host the files and it runs me about $1 USD/month.

---

<div class="post-metadata">

**Author:** ![Gert](https://forum.delta.chat/user_avatar/forum.delta.chat/gert/32/3245_2.png) [@Gert](https://forum.delta.chat/u/Gert)\
**Post date:** [August 11, 2026, 7:29pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/7 "2026-08-11T19:29:39Z")

</div>

But does anyone here know why its not possible to gave a static website server and a relay on the same host.  
Wonder if its fixable  
Cheers  
Gert

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:41pm UTC](https://forum.delta.chat/t/chatmail-and-static-website-on-same-server/5110/8 "2026-10-06T15:41:05Z")

</div>


