WAMP environment apache 2.4.23 LAN access, wamp2.4.23

Source: Internet
Author: User

WAMP environment apache 2.4.23 LAN access, wamp2.4.23

I have answered a lot of questions shared by great gods. I don't know which one I am referring to. If there is plagiarism or infringement, please let us know, add a link or delete it !!!

Recently, I want to improve the learning code efficiency by screen sharding. In the evening, I suddenly thought that I could use this book to connect to WiFI and then access the PC development file 192.168.0.XX through the LAN;

PC uses the wamp integrated environment (I have learned a little bit about php for work reasons ...), you can use http: // localhost to open the website, and then use the local ip address (for example, http: // 192.168.0.108/) to access the lan pc. The error 403 is returned and you are not authorized to access this page.

There were too many modifications in the middle, and when I was about to give up, I thought of opening the node. JS port first, and then the PC reverse access to the local server. I found that it was successful! (Node is very bad, php is not used well...), it shows that there is no firewall or any mess, or the apache settings in wamp integration...

After finding a lot of information on the Internet, I finally found the solution. The solution is as follows: My wamp is installed on the D drive, and you need to modify httpd under D: \ wamp64 \ Apache2 \ conf. conf (or directly click Apache on the wamp icon to set httpd. for some permission settings in the file, find the following two sections starting with Directory:

There should be three <Directory ***? Such a closed tag

Change all to the following format:

<Directory/>


AllowOverride none
Allow from all
Require all granted


</Directory>

Solution: 1. Change Allow from 127.0.0.1 to Allow from all

2. Change Deny from all to Allow from.

3. Change Require to Require all granted.

 

 

Find this... I restarted and found that it still does not work, and then suddenly thought of another set apache -- httpd-vhost.config file is set root directory and multi site that is also the same

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.