天天看点

Apache httpd 2.4.4 与老版本的差异

<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>