局域網(wǎng)無法訪問Apache服務(wù)器
問題描述
自己電腦上輸入ip能訪問,局域網(wǎng)同學(xué)電腦上輸入ip無法訪問。以做如下配置:1.
2.已經(jīng)關(guān)閉360。
3.Httpd.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.4/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:# AllowOverride FileInfo AuthConfig Limit#AllowOverride all## Controls who can get stuff from this server.#onlineoffline tag - don’t remove
Require local
4.配置了入站,出站規(guī)則,允許所有連接。
5.在自己電腦上訪問
6.同學(xué)電腦訪問
7.同學(xué)電腦ip:172.18.47.83 我的ip:172.18.141.56
問題解答
回答1:我之前也遇到過,在公司的電腦的時(shí)候連同一WiFi手機(jī)無法訪問本機(jī)地址,但是在我自己家的電腦用隨身WiFi就可以訪問本機(jī),后來在虛擬主機(jī)列表中添加一個(gè)本機(jī)ip地址,就可以訪問了。(雖然這樣感覺有點(diǎn)別扭,因?yàn)樵诠纠镫娔Xip地址是動(dòng)態(tài)的,可能過幾天就得換。。)
相關(guān)文章:
1. mysql - 記得以前在哪里看過一個(gè)估算時(shí)間的網(wǎng)站2. python中merge后文件莫名變得非常大3. 希望講講異常處理4. css3 - 純css實(shí)現(xiàn)點(diǎn)擊特效5. docker start -a dockername 老是卡住,什么情況?6. javascript - 關(guān)于<a>元素與<input>元素的JS事件運(yùn)行問題7. java - 為什么第一個(gè)線程已經(jīng)釋放了鎖,第二個(gè)線程卻不行?8. css3 - [CSS] 動(dòng)畫效果 3D翻轉(zhuǎn)bug9. javascript - 如何將一個(gè)div始終固定在某個(gè)位置;無論屏幕和分辨率怎么變化;div位置始終不變10. 大家好,我想請(qǐng)問一下怎么做搜索欄能夠搜索到自己網(wǎng)站的內(nèi)容。
