This article is mainly to share with you Apache so that other hosts on the same LAN can access this Apache server method, I hope to help everyone.
Apache2.2 and its previous versions
In the <Directory "D:\yourdocroot"\></Directory>
add
Order Allow,deny
Allow from all
Apache2.4 version
In the Apache2.4 version of the above settings after the restart Apache will error, the search found that the Apache2.4 version of the original configuration syntax is not supported, changed to a new require syntax, and the default configuration is to allow the same LAN other host access. The configuration has only one sentence: Require all granted
For details, please refer to Apache official documentation: https://httpd.apache.org/docs/current/upgrading.html
There are references to the 2.2 version and 2.4 version of the access control syntax, as follows:
Attention
For those of you who prefer to change the Apache default port, be sure not to forget to configure inbound rules under Windows, in the following steps:
Control Panel –> Firewall –> Advanced Settings –> Inbound rules –> New inbound rule –> Port –> tcp–> fill your Apache port –> always Next