Question

How to access our node app from nginx website?

Hello! i am new to digitalocean here…i deployed my static website using nginx and when i try to access my droplet ip-address i access my static website. Now on the other hand i also deployed my MEAN app in a same droplet as well…when i run my MEAN application from console the my application is running on “<droplet-ip-address>:port”. Now my question is that i want to configure my MEAN application in a way that when i try to access “<droplet-ip-address>:port/meanapp” then i want to navigation from my static website to MEAN application.

How to configure this scenario…Thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

What you could do is set up Nginx as a reverse proxy for your Node.js application. You can follow the steps here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04

Hope that this helps! Let me know if you have any questions. Regards, Bobby