After the computer system is upgraded to win10, the locally configured website domain name cannot be accessed.
The result of the visit is as follows:
You don't have permission to access / on this server.
Now tidy up the configuration after wamp installation:
1. Make sure to open wamp first
2. Bind the host domain name: 127.0.0.1 localhost
3. Configure vhost:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "E:/wamp/www/" ServerName localhost ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
4. Configure the httpd.conf file:
//turn up <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow allow from all </Directory> //change to <Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory> //If you can't access it yet, continue to look down // find the Directory with the path //Will Deny from all Allow from 127.0.0.1 //change to Allow from all
Since php is configured, "Deny from all" here has refused all connections. Change the line to "allow from all", the modified code is as follows, the problem is solved
As shown in the figure:
Change it to:
Add # sign can be ignored;
Try restarting apache, it should be fine.