How to nest a Location directive inside a virtual host config?
Posted
by Josh
on Stack Overflow
See other posts from Stack Overflow
or by Josh
Published on 2010-01-31T21:01:17Z
Indexed on
2010/04/05
17:03 UTC
Read the original article
Hit count: 266
apache
I am trying nest a Location directive inside a virtual host config like this:
<VirtualHost *:80>
ServerName mysite.com
DocumentRoot /home/deployer/apps/mysite/current/public
ErrorLog /var/log/prod.log
<Location "/shop">
DocumentRoot /home/deployer/apps/mysite_shop/current/public
ErrorLog /var/log/prod.log
</Location>
</VirtualHost>
What I want to do is go to mysite.com/shop, and point it to another application. Is this possible? Is there another method of doing this? I get an error because apparently Location directives do not accept DocumentRoot.
Thanks.
© Stack Overflow or respective owner