# Can i run Discourse on my Main Domain?

**URL:** https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980
**Category:** Self-hosting
**Created:** [2016年十二月8日 20:45 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980 "2016-12-08T20:45:33Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![King\_Daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/king_daniel/32/65007_2.png) [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)
#### Post date: [2016年十二月8日 20:45 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/1 "2016-12-08T20:45:33Z")

</div>

Hi,

This is my first post. I am trying to self install discourse, can i use my main domain for this installation instead of a subdomain?

---

<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: [2016年十二月8日 20:46 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/2 "2016-12-08T20:46:27Z")

</div>

Yes. Most people have another site that they run on [example.com](http://example.com), but if you don’t, you can put Discourse there.

---

<div class="post-metadata">

### Author: ![King\_Daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/king_daniel/32/65007_2.png) [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)
#### Post date: [2016年十二月8日 20:58 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/3 "2016-12-08T20:58:08Z")

</div>

Thanks @pfaffman. DOne with settings… I think i broke something at the email section as i mistakenly tapped the enter button twice, skipping both SMTP user name and SMTP port [587]:

Can i delete what i have done so far and restart the process? Thanks

---

<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: [2016年十二月8日 20:59 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/4 "2016-12-08T20:59:49Z")

</div>

Yes. But it’ll ask you if everything is right before it gets started.

```
cd /var/discourse
rm containers/app.yml

```

---

<div class="post-metadata">

### Author: ![King\_Daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/king_daniel/32/65007_2.png) [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)
#### Post date: [2016年十二月8日 21:02 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/5 "2016-12-08T21:02:14Z")

</div>

Opps… Got this \>\>\>\> rm: cannot remove ‘containers/app.yml’: No such file or directory

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [2016年十二月8日 21:10 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/6 "2016-12-08T21:10:19Z")

</div>

You have to do `cd /var/discourse` first

---

<div class="post-metadata">

### Author: ![King\_Daniel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/king_daniel/32/65007_2.png) [@King\_Daniel](https://meta.discourse.org/u/King_Daniel)
#### Post date: [2016年十二月8日 21:18 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/7 "2016-12-08T21:18:09Z")

</div>

Thanks @Steven got same response no such file.directory found, is it possible i destroy this droplet and start all over again?

---

<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: [2016年十二月8日 21:44 UTC](https://meta.discourse.org/t/can-i-run-discourse-on-my-main-domain/53980/8 "2016-12-08T21:44:54Z")

</div>

It’s more likely that you didn’t hit return enough times for it to create the file. Just run `./discourse-setup` again.
