Using correct port (‘3000’) and A and CNAME set to domain and ‘www’ alias, respectively. IP + port loads with no problem.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
You need to setup apache web server as a reverse proxy for your nodejs web app so you can access it using the domain name, this is an example apache site for you to try it
Create a file called
example.com.conf
in/etc/apache2/sites-available/
with the above content, make sure to enable the proxy module and the new site with these commandsNow you can access your app using
example.com
as domain name.Hope this helps