自己電腦上輸入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.
#
Require local
4.配置了入站,出站規則,允許所有連線。
5.在自己電腦上存取
6.同學電腦訪問
7.同學電腦ip:172.18.47.83
我的ip:172.18.141.56
我之前也遇到過,在公司的電腦的時候連同一WiFi手機無法訪問本機地址,但是在我自己家的電腦用隨身WiFi就可以訪問本機,後來在虛擬主機列表中添加一個本機ip位址,就可以訪問了。 (雖然這樣感覺有點彆扭,因為在公司裡電腦ip位址是動態的,可能過幾天就得換。)