This community is really informative and helpful. I installed Discourse on the cloud and now I want to add a couple of subdomains under a user I created. The new subdomains still point to the Discourse forum. I tried to specify the custom directory, but still no luck.
Then set Backend Template PHP-FPM > Socket. The Discourse is working fin. I added a subdomain and installed WordPress, but it didn’t point to the new website. All it did it redirect me to the Discourse forum.
Here is the error log from nginx
GNU nano 6.2 error.log
2022/07/08 13:52:25 [emerg] 354516#354516: invalid port in "%ip%:%proxy_port%" of the "listen" directive in /etc/nginx/nginx.conf:164
2022/07/08 13:52:25 [emerg] 354524#354524: invalid port in "%ip%:%proxy_port%" of the "listen" directive in /etc/nginx/nginx.conf:164
2022/07/08 13:52:25 [emerg] 354529#354529: invalid port in "%ip%:%proxy_port%" of the "listen" directive in /etc/nginx/nginx.conf:164
``
I figure it out, after lengthy attempts with forwards and backwards, the error was misconfiguration the Discourse. Sorry, I am still learning new stuff so it was confusing to me at the beginning.