Hulp bij het wijzigen van domein

AI-generated summary

Andro is self-hosting Discourse and attempted to change the domain from discourse.jackril.space to jackrail.space by editing app.yml and rebuilding, but encountered a 502 error due to nginx.http.sock not being created. The error suggests the reverse proxy failed to connect to the upstream socket. JimPas advised using the built-in domain change tool in the /admin dashboard, which guides users through the process. Andro clarified they’re self-hosted and feared their site was permanently down. itsbhanusharma reassured them the installation isn’t dead and pointed to the official guide for changing domain names, noting that with an external nginx, users must also update the nginx config and generate new SSL certificates for the new domain. After following the guidance, Andro confirmed the issue was resolved. The key takeaway is that for self-hosted instances, manually editing app.yml alone is insufficient — the admin interface or full manual config updates (including nginx and SSL) are required to avoid service disruption.

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:/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?

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.

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

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

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.

@itsbhanusharma Thank you. Issue solved.