我已将Apache升级到2.4,并且所有虚拟主机配置都停止工作。大多数配置如下:
<VirtualHost *:80>
ServerAdmin MYEMAIL
DocumentRoot "MYPATH"
ServerName MYNAME
ErrorLog "logs/garmonia3.log"
CustomLog "logs/garmonia3.log" common
DirectoryIndex page.php
</VirtualHost>
第一个网站被禁止了。我试图找到一些解决方法,发现它们像
<VirtualHost *:80>
ServerAdmin MYEMAIL
DocumentRoot "MYPATH"
ServerName MYNAME
ErrorLog "logs/garmonia3.log"
CustomLog "logs/garmonia3.log" common
DirectoryIndex page.php
<Directory "MYDIR">
Options FollowSymLinks MultiViews
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
但这些可能已经过时了,因为Apache正在Order
和Allow
目录上发誓。
那么如何启用?