After installing Wamp, install the online tutorial set virtual path, there is a problem, the same problem is caused by different reasons.
1, add listen corresponding port in httpd.conf, mine is 8080
2. httpd.conf remove the # in front of include conf/extra/httpd-vhosts.conf.
3, and then call localhost, the following error occurs:
forbiddenyou Don' t has permission to access/on the this server.
Workaround: Add in the httpd-vhosts.conf file below Conf\extra,
Note: The virtual directory should also write the directory access permissions, the following Blue section
<virtualhost *:8080> documentroot D:/wamp/www/web ServerName localhost <directory "D:/wamp/www/aa" > Options Indexes followsymlinks Order allow,deny allow from All allowoverride </Directory></VirtualHost>
6. LocalHost works, but there are new problems in running localhost:8080:
forbiddenyou Don' t has permission to access/on the this server.
7, and then also find a lot, much is to say what to allow the problem of all and so on. But no matter how I set it all is the problem.
Finally, it was found that adding the options Indexes followsymlinks back to execcgi would make sense.
<virtualhost *:8080> documentroot D:/wamp/www/aa ServerName localhost < Directory "D:/wamp/www/aa" > execcgi Orderallow,deny allow from all AllowOverride All </Directory></VirtualHost>
Start Wamp error You don't have permission to access/on the This server