Can not visit forum.abc.com again after port change to container/app/yml

סיכום מבוסס בינה מלאכותית

DanielDai attempted to install Discourse but changed the default ports (80→8080, 443→8443) in container/app.yml to avoid conflicts with an existing WordPress site on the same server. After rebuilding, he could no longer access forum.abc.com. Stephen explained that Discourse does not support non-standard ports and advised reverting to 80/443. DanielDai clarified he needed alternate ports because he plans to restart Nginx/Apache for WordPress after Discourse setup. itsbhanusharma recommended following the official guide for running other websites alongside Discourse: Running Other Websites on the Same Machine as Discourse. The core issue is port conflict management — Discourse expects standard HTTP/HTTPS ports, and using alternatives breaks expected behavior. The recommended solution is either to revert ports and use reverse proxying (as per the guide) or configure Nginx to route traffic appropriately without changing Discourse’s ports.

I tried my first-time installation of Discourse today. I did move forward to the typical page of “Discourse successful installation”. I did not click “register” button to finish the 14-steps initial configuration.

Instead, i opened container/app/yml and change the port from 80 to 8080 (also 443 to 8443). I rebuilt the app and the docker container Discourse is running.

When I wanted to visit forum.abc.com again, i found i can not visit it. What can i do to get the link forum.abc.com back to normal visit? Thank you all for kind attention.

Why would you change the port?

Connecting to discourse on non-standard ports isn’t supported.

HTTP means port 80.
HTTPS means port 443.

To get it back to normal, restore the ports to their supported values.

Thank you Stephen for your reply. I already have installed a Wordpress website on the same server with the main domain www.abc.com.

I stoped Nignx and Apache temporarily in order to have Discourse intalled. After the Discourse installation we need to restart Nignx and Apache sevices. That is why I changed the port of Discourse (http port from 80 to 8080 and https port from 443 to 8443) after the installation.

You should really be following this guide: