I've two programs running within the same server and I must have one offered from subpath within the url (i.e):

  • foo.com -> /var/www/foo
  • foo.com/bar -> /var/www/bar

I am triyng to complete an alias however is not working:

<VirtualHost *:80>
  ServerAdmin webmaster@foo.com
  ServerName foo.com
  DocumentRoot /webapps/foo/current/public
  <Directory /webapps/foo/current/public>
    AllowOverride all
    Options -MultiViews
  </Directory>
  RailsEnv staging
  Alias /blog /webapps/blog/current
 <Directory /webapps/blog/current>
   allow from all
   Options +Indexes
 </Directory>

Are you aware why this isn't working?

I additionally attempted serverpath directive with no success.

Are you aware how to do this?

Thanks in advanced.

I discovered solution with this and published during my blog:

http://www.rafael-chacon.com/post/9903470026/rails-wordpress-apache-integration