# Help changing domain

**URL:** https://meta.discourse.org/t/help-changing-domain/175577
**Category:** Self-hosting
**Created:** [January 9, 2021, 5:24am UTC](https://meta.discourse.org/t/help-changing-domain/175577 "2021-01-09T05:24:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [January 9, 2021, 5:24am UTC](https://meta.discourse.org/t/help-changing-domain/175577/1 "2021-01-09T05:24:49Z")

</div>

To be specific, I want to change the domain I use from discourse.jackril.space to jackrail.space.

But after adjusting app.yml and several rebuilds, I just get a 502 gateway not found and error messages:

2021/01/09 05:21:07 [crit] 4994#4994: \*351 connect() to unix:/var/discourse/shared/standalone/nginx.http.sock failed (2: No such file or directory) while connecting to upstream, client: 59.167.198.231, server: jackrail.space, request: “GET /javascripts/workbox/workbox-routing.prod.js HTTP/1.1”, upstream: “[http://unix](http://unix):/var/discourse/shared/standalone/nginx.http.sock:/javascripts/workbox/workbox-routing.prod.js”, host: “jackrail.space”

from the nginx reverse proxy server, which worked find until this one relativelys small change.

Why is nginx.http.sock not being created? What is the correct procedure for changing the domain?

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [January 9, 2021, 7:55am UTC](https://meta.discourse.org/t/help-changing-domain/175577/2 "2021-01-09T07:55:32Z")

</div>

> [@Andro](#):
>
> What is the correct procedure for changing the domain?

In the `/admin` Dashboard, click on the button `Change Domain Name`. The first thing you get asked is to enter the new domain name, click next and follow the prompts.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/0/c048d8cb83cfe827febafe14ddac146e187ada6b.png)

---

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [January 9, 2021, 8:24am UTC](https://meta.discourse.org/t/help-changing-domain/175577/3 "2021-01-09T08:24:22Z")

</div>

I am self hosted. And now the site is completely inaccessible. Am I dead?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 9, 2021, 9:36am UTC](https://meta.discourse.org/t/help-changing-domain/175577/4 "2021-01-09T09:36:47Z")

</div>

No, Your installation isn’t dead. Did you follow this guide?

> [@Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098):
>
> bookmark This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name. warning This guide is for self-hosted Discourse instances that were installed using our [installation guide on GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md). If you are [hosted by Discourse](https://www.discourse.org/pricing), please see [Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827) for specific …

If so, the only additional steps required with an external nginx is to change the domain name in the nginx config and generate ssl for the new domain.

If you can’t get it up, it might be worth sharing what steps you took to rename discourse installation.

---

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [January 9, 2021, 9:50am UTC](https://meta.discourse.org/t/help-changing-domain/175577/5 "2021-01-09T09:50:45Z")

</div>

@itsbhanusharma Thank you. Issue solved.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 8, 2021, 9:51am UTC](https://meta.discourse.org/t/help-changing-domain/175577/6 "2021-02-08T09:51:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
