# How can I enable www subdomain

**URL:** <https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808>\
**Category:** Self-hosting\
**Created:** [9월 9, 2018, 11:08오후 UTC](https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808 "2018-09-09T23:08:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bblue](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bblue/32/80155_2.png) [@Bblue](https://meta.discourse.org/u/Bblue)\
**Post date:** [9월 9, 2018, 11:08오후 UTC](https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808/1 "2018-09-09T23:08:49Z")

</div>

Hi guys, I want to know how can I enable “www” ([https://www.mydomain.com](https://www.mydomain.com)), but keep [mydomain.com](http://mydomain.com) as primary hostname. I mean, redirecting from “www” to non-“www”, using let’s encrypt.

I found a guide about install nginx after to install discourse from docker, but I’m very noobie, so can anyone help me and explain me all steps. My forum is empty so no problem to reinstall everything if it’s necessary.

ps. Ubuntu 18, digital ocean vps droplet.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-enable-www-subdomain/96808)._
