I have created my droplet with 1 click wordpress. I have added one website and now I want to add another website. What I have to do?

October 17, 2017 228 views
WordPress Networking One-Click Install Apps Ubuntu 16.04 Ubuntu

Problem is : I have created my droplet with 1 click wordpress. I have added one site and it is working perfectly. Now I want to add another website. But the problem is that After adding new website, It is showing the content of previous website in this domain too. How to solve this error. I am newbie to DO.

I have already changed the nameserver of both the website. Add new domain from 'Networking' and 'Add a new domain'.

1 Answer

Depending on which server you are running you need to set up a virtual host. If you used Nginx you need to set up additional server blocks, if apache you need to look at vhosts.

This will allow a single droplet to serve multiple websites with different domain names. Make sure all your domain names have an A record pointing to the same IP of the droplet.

Have another answer? Share your knowledge.