实现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>
再找到在wampserver目录下的apache找到httpd.conf 找到
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
把这边的Deny 改成Allow
再找到webgrind.conf原文件
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
<Directory "D:\mediawiki-1.21.2">
Options Indexes FollowSymLinks ExecCGI
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
将deny修改为Allow修改完这些就可以喽!!