Skip to content


禁止ip访问第一个虚拟机

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /dev/null
    ServerName www.sina.com.cn
    ServerAlias www.dummy-host.example.com
   # ErrorLog “logs/dummy-host.example.com-error_log”
   # CustomLog “logs/dummy-host.example.com-access_log common”
</VirtualHost>
放在虚拟主机最上面.即第一个虚拟主机.

来自linuxtone群主

Posted in Apache.

Tagged with , .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.