配置Apache2时,我遇到了这个问题:
00_default_vhost.conf includes default_vhost.conf
default_vhost.conf
<Directory "/var/www/vhosts">
AllowOverride None
Options Indexes, FollowSymLinks
Order allow,deny
Allow from all
</Directory>
之后另一个 vhost.conf 定义了
vhost.conf
<Directory "/var/www/vhosts/vhost">
AllowOverride All
Options +Includes +ExecCGI
Order allow,deny
Allow from all
</Directory>
但最后一个包含Options指令似乎根本不起作用。为什么?有没有办法让vhost选项覆盖默认值?