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