Please I need help. I currently have a nodejs backend server up and running. How can I host another nodejs backend server under thesame domain name
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!
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.
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.
You mentioned that you want to host both under the same domain name. How do you want that to work? Different paths, as in
website.com/backend1
andwebsite.com/backend2
? A more straightforward way would bebackend1.website.com
andbackend2.website.com
. In that case, you can duplicate your existing Nginx server block, updateserver_name
to point to the new sub domain (make sure you configure DNS for the sub domain), and change theproxy_pass
port to a different one that your second backend will be using.