安装完Wampserver后,浏览器输入localhost,竟然报了403错误,只有输入127.0.0.1才能访问
解决方案:
1. 打开httpd.conf文件,定位
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
把“Deny from all”改为“Allow from all”
2.定位到
# onlineoffline tag - don‘t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
把“Deny from all”改为“Allow from all”
3.打开phpmyadmin配置文件 ,例如:D:\wamp\alias\phpmyadmin.conf,定位到
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
把“Allow from 127.0.0.1”改为“Allow from ::1”
4.重启服务,轻按F5,localhost已经可以访问了。
时间: 2024-10-10 19:59:13