Lan-based php project IP address access sharing

Source: Internet
Author: User
Local Project sharing in local area network (LAN) This article mainly introduces the shared access of local php projects within the LAN. It mainly shows that the local IP address is used to access the project as follows: 1. change the host file of the local disk (the winds directory is C: WindowsSystem32driversetc), and configure: 127.0.0.119425184.111; point to the current IP address of the computer 2. update Apa

Local Project sharing in local area network (LAN) This article mainly introduces the shared access of local php projects within the LAN. It mainly shows that the local IP address is used to access the project as follows: 1. change the host file of the local disk (the winds directory is C: \ Windows \ System32 \ drivers \ etc), configure 127.0.0.119425184.111, and point to the current IP address of the computer 2. update Apa

Local php project sharing in LAN


This article mainly introduces the shared access of the local php project in the LAN, mainly reflected in accessing the project through the local IP address.


The procedure is as follows:

1. Change the host file of the local disk (the winds directory is C: \ Windows \ System32 \ drivers \ etc) and configure 127.0.0.119425184.111. Point to the current IP address of the computer.


2. Update the Apache file httpd. conf (directory: apache \ Apache2.2.17 \ conf), and allow the project root directory to be accessed. Find:

 
      #    # Possible values for the Options directive are "None", "All",    # or any combination of:    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews    #    # Note that "MultiViews" must be named *explicitly* --- "Options All"    # doesn't give it to you.    #    # The Options directive is both complicated and important.  Please see    # http://httpd.apache.org/docs/2.2/mod/core.html#options    # for more information.    #    Options Indexes FollowSymLinks    #    # AllowOverride controls what directives may be placed in .htaccess files.    # It can be "All", "None", or any combination of the keywords:    #   Options FileInfo AuthConfig Limit    #    AllowOverride all    #    # Controls who can get stuff from this server.    ##   onlineoffline tag - don't remove    Order Deny,Allow    Deny from all    Allow from 127.0.0.1
 

Change Allow from 127.0.0.1 to Allow from all, which means Allow access from all sources.


3. Restart Apache, and other computers in the LAN can access the project of the local computer through 192.168.184.111.

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.