wampserver2.5 Apache2.4.9:forbidden, this machine can access, LAN internal access.
Because the project, many people division of labor, need to access their own local area network projects.
Then installed the Wampserver2.5,apache version of 2.4.9, other users within the LAN need to visit my project via 192.168.16.x. Other people can access the normal, that is, I do not. A few hours higher. Woe to me.
Whether it's a list listener:
#Listen 12.34.56.78:80
Listen 192.168.16.x:80
#Listen [:: 0]:80
or the service name:
#ServerName 192.168.16.x:80
or httpd-vhosts.conf:
<virtualhost 192.168.16.x:80>
ServerAdmin [email protected]
DocumentRoot "F:\wamp\www\myhangxian"
ServerName xxx.com
#ErrorLog "F:/wamp/www/xxx/log/error.log"
#CustomLog "F:/wamp/www/xxx/log/access.log" common
<directory "F:/wamp/www/xxx" >
#Options Indexes FollowSymLinks
#AllowOverride All
#Order Allow,deny
Allow from all
Allow from 192.168.16.x
</Directory>
</VirtualHost>
To be dead is to be inaccessible.
Finally, the answer is found here:
<directory "f:/wamp/www/" > # # Possible values for the Options directive is ' None ', ' All ', # or any COM Bination of: # Indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # Note that " MultiViews "must be named *explicitly*---" Options all " # doesn ' t give it for you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes followsymlinks # # allowoverride Controls What directives is placed in. htaccess file S. # It can be ' all ', ' None ', or any combination of the keywords: # allowoverride FileInfo authconfig Limit #< C21/>allowoverride All # # Controls who can get stuff from the this server. # # onlineoffline tag-don ' t remove #Require local Require all granted </Directory>
Modify Require Local to :
Take this as a mirror. Right when recorded.
wampserver2.5 Apache2.4.9:forbidden, this machine can access, LAN internal access.