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.