#在apache2/conf/extra/httpd-vhosts.conf下首行添加
<VirtualHost *:80>
DocumentRoot "/usr/local/www/www.abc.com.cn/"
ServerAlias 1.1.1.1
<Location />
Order Deny,Allow
Deny from all
</Location>
</VirtualHost>
本文转自 showerlee 51CTO博客,原文链接:http://blog.51cto.com/showerlee/1140963,如需转载请自行联系原作者