Skip to content

WAMP: You don't have permission to access on this server.

新安装的 WAMP ,在其他电脑访问时,会出现 403错误:

Forbidden 
You don't have permission to access on this server.

解决办法:

在安装目录 盘符:\wamp64\bin\apache\apache2.4.23\conf\extra 中找到 httpd-vhosts.conf文件:

VirtualHost *:80>
	ServerName localhost
	DocumentRoot d:/wamp64/www
	<Directory  "d:/wamp64/www/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

修改为:

VirtualHost *:80>
	ServerName localhost
	DocumentRoot d:/wamp64/www
	<Directory  "d:/wamp64/www/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require all granted
	</Directory>
</VirtualHost>

亲手创建自己所需的软件,是程序员的幸运。