Report this

What is the reason for this report?

Setting Up New Document Root Directories

Posted on September 22, 2021

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…



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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.