I resolved my issue! My Discourse Forum shows up now in a Browser!
Well, to be more specific, Francis Day over on the Nginx Forums resolved my issue! It was indeed Nginx all along. Here is what I did:
- Logged into my Nginx VM.
- VIMed Discourse CONF file:
vim /etc/nginx/sites-available/discourse.conf - Here is what my Discourse CONF file looked like (obviously not using the Domain Name I would normally use, and where 192.168.0.101 = Nginx VM and 192.168.0.104 = Discourse VM).
- I only made one change: I changed
proxy_pass http://discourse.domainame.com:8080/;toproxy_pass 192.168.0.104:8080/;. So proxy_pass is set to the Discourse VM’s Local IP instead of the Hostname. - Save the CONF file, and then Reloaded (
systemctl reload nginx.service) and Restarted (systemctl restart nginx.service) Nginx. - Viola! I refresh the Discourse URL, and it comes up! Didn’t even need to Restart/Rebuild Discourse!
I hope someone finds what I’ve written here useful, as reverse proxying Discourse through Nginx can be really tricky.