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

       Options Indexes FollowSymLinks

       AllowOverride None

       Order allow,deny

       Allow from all

        </Directory>

猜你喜欢

转载自netkiller-github-com.iteye.com/blog/1894840
今日推荐