By codeperfect
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!
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 and website.com/backend2? A more straightforward way would be backend1.website.com and backend2.website.com. In that case, you can duplicate your existing Nginx server block, update server_name to point to the new sub domain (make sure you configure DNS for the sub domain), and change the proxy_pass port to a different one that your second backend will be using.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.