title: DigialOcean Droplet clone of a wordPress website - DNS not resolving
body: <p>I have a website <strong>mywebsite1.com</strong> runing <strong>wordpress</strong> and hosted on digitalOcean droplet using <strong>LEMP</strong> (Nginx/php/mysql) on Ubunto server, am trying to duplicate the same site and use a new DNS <strong>mywebsite2.com</strong> to point to the new droplet IP, the problem is that the new DNS doesn't load and try to connect to the server then stop loading, here what I got
  on fireFox :</p>
  
  <pre><code>Unable to connect
  </code></pre>
  
  <p>on chrome :</p>
  
  <pre><code>This webpage is not available
  ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p>I am a Linux beginner, so for sure there's something missing .. here what I did step by step :</p>
  
  <ul>
  <li>On my DNS provider I added <strong>A</strong> type <strong>mywebsite2.com</strong> to point to my new Droplet IP.</li>
  <li>CNAME <strong>www.mywebsite2.com</strong> to point to  <strong>mywebsite2.com</strong></li>
  <li>Updated my databasedump.sql with the new domain <strong>mywebsite2.com</strong></li>
  <li>Updated my config.php file (Wordpress)</li>
  <li>Renamed my website directory :</li>
  </ul>
  
  <blockquote>
    <p>/home/html/mywebsite1.com to /home/html/mywebsite2.com</p>
  </blockquote>
  
  <pre><code>ls -l 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6YE4C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6YE4C.png" alt="enter image description here"></a></p>
  
  <ul>
  <li>Go to :</li>
  </ul>
  
  <blockquote>
    <p>/etc/nginx/sites-available and renamed mywebsite1.com to mywebsite2.com and updated all the file</p>
  </blockquote>
  
  <ul>
  <li>Delete the old symlink and create a new one for the new DNS, using this cmd :</li>
  </ul>
  
  <blockquote>
    <p>sudo ln -s /etc/nginx/sites-available/mywebsite2.com
    /etc/nginx/sites-enabled/mywebsite2.com</p>
  </blockquote>
  
  <ul>
  <li>Restart nginx ..</li>
  </ul>
  
  <p><strong>Note :</strong> I have an SSL certificate (Wildcard) that is working on mywebsite1.com, but recently bought a new one for mywebsite2.com and left the same config and put the new certification files (public &amp; private)</p>
  
  <p><strong>Note 2 :</strong> Runing ping to mywebsite2.com is working and whois (cmd) give me the right DNS provider.</p>
  
  <p>What am I missing please? Any suggestion is very welcome am trying to figure out what is wrong.</p>
  
  <p>Thanks!</p>