Multiple domains on an existing Wordpress droplet

Posted January 11, 2016 3.7k views

I already have a Worpdress droplet running (1 click install - domain: Is it possible to add an extra domain to this droplet using this tutorial
In other words can I add the new domain using the tutorial above and leave the old domain setup as is?

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.

Submit an Answer
1 answer

Yes, you can create as many websites with different domains as you like to. There is ofcourse a limit of resources.
Since the one-click app already installed apache/php you don’t need to install apache anymore. You also don’t need to do step 7.
If you need any more help don’t hesistate to contact me here.

  • Thanks for the reply, I guess my main question is what happens to my existing site that sits in /var/www/html if I make these changes as per the tutorial? Does it still work normally or do I have to reconfigure it?

    • The default apache VHOST created with the one-click app (/etc/apache2/sites-available/000-default.conf):

      <VirtualHost *:80>
              ServerAdmin webmaster@localhost
              DocumentRoot /var/www/html
              <Directory /var/www/html/>
                  Options Indexes FollowSymLinks
                  AllowOverride All
                  Require all granted
              ErrorLog ${APACHE_LOG_DIR}/error.log
              CustomLog ${APACHE_LOG_DIR}/access.log combined

      In here you can see the site root is at /var/www/html . This configuration and this directory is being handled seperated from all the other VHOST’s with different roots.
      As long as you create your own new directory for your new website as explained in the tutorial it won’t affect your current site since its root is somewhere else.
      In the tutorial you will also create a new VHOST for the new website, since this also doesn’t affect any configurations from your current site; nothing will happen.
      You don’t need to reconfigure anything and you can execute this tutorial as many as you like as long you don’t affect the other sites with directories/VHOST’s.

      Hope this makes it a bit clear.