title: Erro Setting up VirtualHost for folders belonging to same domain
body: <p>Noob Here.. I have the following folder structure on my Ubuntu Machine</p>
  
  <pre><code> /var/www/
          /folder1
          /folder2
  </code></pre>
  
  <p>Now i want to redirect my url xyz.com to folder1 &amp; xyz.com/blog to folder2. I am using the following Vhost Config file</p>
  
  <p>For xyz.com to folder1</p>
  
  <pre><code>  &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      ServerName xyz.com
      ServerAlias www.xyz.com
  
      DocumentRoot /var/www/folder1
      &lt;Directory /&gt;
              Options FollowSymLinks
              AllowOverride None
      &lt;/Directory&gt;
      &lt;Directory /var/www/&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
      &lt;/Directory&gt;
       .......
     &lt;/VirtualHost &gt;
  </code></pre>
  
  <p>And for xyz.com/blog to folder2</p>
  
  <pre><code>   &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      ServerName xyz.com/blog
      ServerAlias www.xyz.com/blog
  
      DocumentRoot /var/www/folder2
      &lt;Directory /&gt;
              Options FollowSymLinks
              AllowOverride None
      &lt;/Directory&gt;
  
      &lt;Directory /var/www/&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
      &lt;/Directory&gt;
       .......
     &lt;/VirtualHost &gt;
  </code></pre>
  
  <p>When i enter xyz.com in url, it serves me index file from folder1(As expected &amp; correct) but when i enter xyz.com/blog it shows 404:Not found Error</p>
  
  <pre><code>  Not Found
  
    The requested URL /blog/ was not found on this server.
  
    Apache/2.2.22 (Ubuntu) Server at socialcosmo.com Port 80
  </code></pre>
  
  <p>I have spent hours on this and still unable to figure out the problem :(
  Any help would be greatly appreciated</p>