Wamp virtual directory You don ' t have permission to ACCE

Source: Internet
Author: User
Tags require

Use the Wamp integrated alias function directly. As shown in figure:

Then enter the URL path to access on the command line that pops up, and the physical path is OK.

But there is a problem, when debugging locally, the following error occurs: You don ' t have permission to access

Search for a bit, get the result basically, the following settings:

The code is as follows Copy Code

Options Indexes followsymlinks MultiViews
AllowOverride All
Order Allow,deny
Allow from all

But how to set still prompts you with don ' t have permission to access/webdev/in on the this server.
The right to modify the file does not work (it should not be a permissions issue for the folder).
Locate the file The alias directory is d:/wamp/alias/webdev.conf, and the contents of the file are as follows:

The code is as follows Copy Code

alias/webdev/"d:/webdev/"
<directory "d:/webdev/" >
Options Indexes followsymlinks MultiViews
AllowOverride All
Order Allow,deny
Allow from all
</Directory>

Compared with the d:/wamp/bin/apache/apache2.4.2/conf/httpd.conf, finally found that only need to add Require in the webdev.conf local can, as follows:

The code is as follows Copy Code

alias/webdev/"d:/webdev/"
<directory "d:/webdev/" >
Options Indexes followsymlinks MultiViews
AllowOverride All
Order Allow,deny
Allow from all
Require Local
</Directory>

Finally restart Apache.

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.