wamp You don't have permission to access / on this server等问题的解决.

安装完wamp之后,在局域网内访问系统,本机器可以,但是其他其他访问总是提示”You don’t have permission to access / on this server”,刚开始以为是httpd.conf的ServerName的问题以及Listen的问题,修改以后,发现还是其他其他依旧不可以访问,只有安装的电脑可以访问,最后发现原因是httpd-vhosts.conf配置文件中ServerName的问题,将ServerName换成你本机的IP地址就可以了。

3、在conf\extra下面的httpd-vhosts.conf文件中添加

<VirtualHost *:80>
DocumentRoot D:/wamp/www
ServerName 192.168.1.190
<Directory "d:/wamp/www/aa">
    Options Indexes FollowSymLinks 
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>

猜你喜欢

转载自blog.csdn.net/u011872945/article/details/80105500