<virtualhost *:80>
serveradmin [email protected]
documentroot "/www/www.example.com"
servername www.example.com
errorlog "logs/www.example.com-error.log"
customlog "logs/www.example.com-access.log" combined
<directory "/www/www.example.com">
options indexes followsymlinks
allowoverride none
require all granted
</directory>
</virtualhost>
require all granted 替代老版本中的 order allow,deny 與 allow from all
<directory /var/www/>
order allow,deny
allow from all
</directory>