我已经安装了 apache 2.2 和 php-fpm。在 httpd.conf 中:
DocumentRoot "/var/www/local.site/public_html
<Directory />
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<Directory "/php5-fcgi/">
Order Deny,Allow
Allow from 127.0.0.1
Allow from ::1
#Allow from all
</Directory>
<Directory /var/www/local.site/public_html>
Order Allow,Deny
Deny from all
</Directory>
如何允许执行*.php和html文件,但拒绝目录监听?因为,无论我做什么,它都被拒绝/php5-fcgi/、*.php,或者允许读取目录。