title: How to create subdomain in Nginx server on UBUNTU 14.04
body: <p>I am trying to create subdomain for my blogging site in digitalocean. I have added a cname record in my domain section. I have created file named blog in <code>/etc/nginx/sites-available</code> and added the following lines- </p>
  
  <pre><code>server {
     listen  80;
     server_name blog.mydomain.com;
     location / {
            root   /usr/share/nginx/blog;
            index index.php index.html index.html;
     }
  }
  </code></pre>
  
  <p>And also added <code>include /etc/nginx/sites/enabled/*;</code> in my <code>nginx.conf</code> file. But still it shows "This site can’t be reached." What am I missing?</p>