1.编辑虚拟主机文件
vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
<Directory /data/www/data>
php_admin_flag engine off
<filesmatch "(.*)php">
Order deny,allow
Deny from all
</filesmatch>
</Directory>
------禁止解析php
原文地址:http://11706174.blog.51cto.com/11696174/1787429