Wamp you do not have a solution for issues such as permission to access/on this server.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.