局域網無法訪問Apache服務器
問題描述
自己電腦上輸入ip能訪問,局域網同學電腦上輸入ip無法訪問。以做如下配置:1.
2.已經關閉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.配置了入站,出站規則,允許所有連接。
5.在自己電腦上訪問
6.同學電腦訪問
7.同學電腦ip:172.18.47.83 我的ip:172.18.141.56
問題解答
回答1:我之前也遇到過,在公司的電腦的時候連同一WiFi手機無法訪問本機地址,但是在我自己家的電腦用隨身WiFi就可以訪問本機,后來在虛擬主機列表中添加一個本機ip地址,就可以訪問了。(雖然這樣感覺有點別扭,因為在公司里電腦ip地址是動態的,可能過幾天就得換。。)
相關文章:
1. 數據庫 - mysql聯表去重查詢2. 用tp5框架寫sql語句3. 【python|scapy】sprintf輸出時raw_string轉string4. docker Toolbox在win10 家庭版中打開報錯5. mysql - 數據庫為什么需要鎖機制?6. python - 我已經連上了美國的VPN,而且在瀏覽器里查看的game排行也是美國的,可是為啥我用代碼怎么爬都是中國地區排行7. 就一臺服務器,mysql數據庫想實現自動備份,如何設計?8. mysql 能不能創建一個 有列級函數 的聯合視圖?9. python3.x - 關于Python圖遍歷的操作10. python小白 問關于參數無法找到的問題
