I have two applications running in the same server and I would like to have one served from subpath in the url (i.e):
- foo.com -> /var/www/foo
- foo.com/bar -> /var/www/bar
I'm trying to do an alias but is not working:
<VirtualHost *:80>
ServerAdmin [email protected]
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>
Do you know why this is not working?
I also tried serverpath directive without any success.
Do you know how to achieve this?
Thanks in advance.
www.
as well as the root of the domain, I would say you need aServerAlias www.foo.com
in there... – Farismod_rewrite
ing? – Faris[PT]
on you rewrite rules for the/blogs
directory? – Faris[PT]
(although not all rules, it depends on what it does). Let me have a play with the Apache install on my laptop and I'll get back to you... – Faris/var/www/bar
to/var/www/foo/bar
– Unlucky