实现apache下,IP地址无法访问网站.
在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>
-------------------------------------
本文链接:http://www.showerlee.com/archives/823
继续浏览:APACHE
还没有评论,快来抢沙发!