wampserver2.5 Apache2.4.9:forbidden, this machine can access, LAN internal access.

Source: Internet
Author: User

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.

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.