You don't have permission to access/on the this server. wampserver3.1.0 Configuring external network access issues

Source: Internet
Author: User

Refer to various Wamp tutorials after the extranet still cannot access the server, it is a headache

Online a lot of wampserver configuration is relatively old, the latest version 3.1.0 very few, first open httpd.conf file (this part is more brief, detailed can refer to other Wamp configuration tutorial)

Change DocumentRoot ... and <directory "... "After >, since the Apache version of wampserver3.0.6 is 2.4.23, allow extranet access to be added in directory: Require all Granted,

After that, you will not be able to access:

It turns out that there is this code in Apache 2.4.27:

# Virtual Hosts
Include conf/extra/httpd-vhosts.conf

This causes the Require all granted in httpd.conf to not work, so locate the extra file in the Apache root \conf \ httpd-vhosts.conf and add it in directory: Require all Granted, so you can access the extranet!

<virtualhost *:80>
ServerName www.saneb.cn
DocumentRoot "C:/sitefolder"
<directory "c:/sitefolder/" >
Options +indexes +includes +followsymlinks +multiviews
AllowOverride All
Require Local
    Require all granted
</Directory>
</VirtualHost>

You don't have permission to access/on the this server. wampserver3.1.0 Configuring external network access issues

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.