apache虚拟主机防止php网页木马vhost.conf文件配置

<VirtualHost *>
    DocumentRoot "/www/www.abc.com"
    ServerName www.abc.com
    ServerAlias  abc.com  www.abc.cn abc.cn
    CustomLog "| /usr/sbin/rotatelogs /weblogs/www.abc.com/%Y_%m_%d_access_log 86400 480" common

    php_admin_value open_basedir "/www/www.abc.com/:/tmp123/"
    <Directory "/www/www.abc.com/">
        
        #AllowOverride All
        
        Options FollowSymLinks
        
        AllowOverride All
        
        
        Order allow,deny
        allow from all
        #Options +Indexes
        #Options FollowSymLinks
        #AllowOverride All
    </Directory>
    #RewriteEngine on
    #RewriteRule ^/tt_(.*).html$ /t.php?id=$1
</VirtualHost>
原文地址:https://www.cnblogs.com/qkabcd/p/7581125.html