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