Apache2.4\conf\extra下的httpd-vhosts.conf文件中添加如下代码进行IP访问的屏蔽。注意一旦点了apache大师中的修改。则要重新添加以下代码。不然就丢失了。
NameVirtualHost 27.54.216.129
<VirtualHost *:80>
ServerName 27.54.216.129
<Location />
Order Allow,Deny
Deny from all
</Location>
</VirtualHost>