Question

Setting Up New Document Root Directories

I have one doubt 🧐…how can I add another site IP and domain in local host of nginx…this is only for poc…

I add and save that ip and run but it raises ssh error…but for fake ip that error doesn’t araises…

Subscribe
Share

This comment has been deleted


Submit an 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.

Hello,

Each Droplet comes with one public IPv4 address. But you could still have multiple domain names hosted on the same server with Nginx by using Nginx server blocks.

You could follow the steps on how to do that here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

Let me know if you have any questions. Best, Bobby