httpd.conf 禁止运行PHP和html页面

<VirtualHost *:80>
    ServerName www.test.com
    DocumentRoot /var/www/www.test.com
    ErrorDocument 404 /404.html
        <Directory /var/www/www.test.com>
                <Files ~ ".(php|html|htm)$">
                Order allow,deny
                Deny from all
                </Files>
        </Directory>
</VirtualHost>

posted @ 2015-08-19 14:38  chy1000  阅读(262)  评论(0编辑  收藏  举报