1
我想窝在虚拟主机配置内部Location指令是这样的:如何在虚拟主机配置中嵌套位置指令?
<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>
我想要做的就是去mysite.com/shop,并将其指向另一个应用程序。这可能吗?还有另外一种方法吗?我得到一个错误,因为显然Location指令不接受DocumentRoot。
谢谢。