Original: Wamp You do not have the resolution of permission to access/on this server and other issues.
After installing Wamp, install the online tutorial set virtual path, there is a problem, the same problem is caused by different reasons. Hope to be helpful to some people who are careless.
1. httpd.conf remove the # in front of include conf/extra/httpd-vhosts.conf.
2, add listen corresponding port in httpd.conf, mine is 8080
3. Add in the httpd-vhosts.conf file below Conf\extra
<virtualhost *:8080>
DocumentRoot D:/WAMP/WWW/AA
ServerName localhost
<directory "D:/WAMP/WWW/AA" >
Options Indexes FollowSymLinks
Order Allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
4, and then call localhost, the following error occurs:
Forbidden
You don't have permission to access/on the this server.
(There is no problem setting it all up when localhost accesses)
5, the final discovery is not deleted from the httpd-vhosts.conf file in the code caused by:
<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/apache23/docs/dummy-host.example.com"
ServerName dummy-host.example.com
Serveralias www.dummy-host.example.com
Errorlog "Logs/dummy-host.example.com-error.log"
Customlog "Logs/dummy-host.example.com-access.log" common
</VirtualHost>
Delete or comment out this code, then run localhost there is no problem.
6. LocalHost works, but there are new problems in running localhost:8080:
Forbidden
You don't have permission to access/index.phpon 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.
After several twists and turns, found that the options Indexes followsymlinks add execcgi on the back to make it.
<virtualhost *:8080>
DocumentRoot D:/WAMP/WWW/AA
ServerName localhost
<directory "D:/WAMP/WWW/AA" >
Options Indexes followsymlinks execcgi
Order Allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
Wamp you do not have a solution for issues such as permission to access/on this server.