title: Apache alias virtual host
body: <p>I have two applications running in the same server and I would like to have one served from subpath in the url (i.e):</p>
  
  <ul>
  <li>foo.com -> /var/www/foo</li>
  <li>foo.com/bar -> /var/www/bar</li>
  </ul>
  
  <p>I'm trying to do an alias but is not working:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@foo.com
    ServerName foo.com
    DocumentRoot /webapps/foo/current/public
    &lt;Directory /webapps/foo/current/public&gt;
      AllowOverride all
      Options -MultiViews
    &lt;/Directory&gt;
    RailsEnv staging
    Alias /blog /webapps/blog/current
   &lt;Directory /webapps/blog/current&gt;
     allow from all
     Options +Indexes
   &lt;/Directory&gt;
  </code></pre>
  
  <p></p>
  
  <p>Do you know why this is not working?  </p>
  
  <p>I also tried serverpath directive without any success. </p>
  
  <p>Do you know how to achieve this? </p>
  
  <p>Thanks in advance.</p>