您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

局域网之php项目IP访问共享

2024/6/29 13:48:45发布29次查看
局域网之php本地项目共享 该文章主要介绍本地php项目在局域网内的共享访问,主要体现为通过本地ip地址访问项目 做法如下: 1.更改本地盘host文件(winds目录为:c:\windows\system32\drivers\etc),配置:127.0.0.1192.168.184.111;指向电脑目前的ip地址 2.更新apa
局域网之php本地项目共享
该文章主要介绍本地php项目在局域网内的共享访问,主要体现为通过本地ip地址访问项目
做法如下:
1.更改本地盘host文件(winds目录为:c:\windows\system32\drivers\etc),配置: 127.0.0.1192.168.184.111;指向电脑目前的ip地址
2.更新apache文件httpd.conf(目录为:apache\apache2.2.17\conf),允许项目根目录被访问,找到:
# # 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
把 allow from 127.0.0.1 改为allow from  all ;意思是允许所有来源的访问
3.重启apache,局域网内其他电脑便可以通过 192.168.184.111 来访问本地电脑的项目了
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product