Apache enables other hosts on the same LAN to access this Apache server method

Source: Internet
Author: User


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

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.