for i in $IP
do
echo "<VirtualHost $i:80>
ServerName *
DocumentRoot /tmp
</VirtualHost>
<Directory /tmp>
Order allow,deny
Deny from all
</Directory>">>DenyInvalidDomain.conf
echo >>DenyInvalidDomain.conf
done
service httpd restart作者: hackhyj 时间: 2013-4-29 00:00