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>

 

posted @ 2017-09-23 14:41  qkabcd  阅读(314)  评论(0编辑  收藏  举报