I'm trying nest an area directive in the virtual host config such as 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  

What I wish to do is visit mysite.com/shop, and point it to a different application. Is possible? Can there be another method this? I recieve a mistake because apparently Location directives don't accept DocumentRoot.


Would you like this to operate like a redirect? If that's the case, take a look at mod_rewrite. Otherwise, take a look in the Alias directive.