急急~~~网站发布不能访问的问题,求助大神~~~~~ 我买了一个空间,然后把网站在空间里发布了,用的是apache+mysql。现在的问题是,我用127.0.0.1和localhost都能访问,但是外网就访问不了(直接用IP访问的)。 我设置了httpd里面的allow from all,把 deny from all也删掉了的,listen也设置了的,防火墙也关了的,但是还是访问不了! 网页直接打不开,也没有“Forbidden You don't have permission to access / on this server.”的提示。。 但是用其他电脑ping空间的IP又能通~~
Google Chrome could not load the webpage because 121.12.175.19 took too long to respond. The website may be down, or you may be experiencing issues with your Internet connection.
traceroute to 121.12.175.19 (121.12.175.19), 64 hops max, 52 byte packets 1 bogon (192.168.102.1) 1.928 ms 1.064 ms 1.557 ms 2 bogon (192.168.3.251) 0.893 ms 1.096 ms 1.290 ms 3 221.4.48.98 (221.3.48.98) 3.593 ms 8.879 ms 3.404 ms 4 120.80.173.73 (120.81.173.73) 8.358 ms 6.049 ms 120.80.173.69 (120.81.173.69) 3.562 ms 5 120.84.0.49 (120.84.0.49) 3.238 ms 3.240 ms 120.83.0.89 (120.83.0.89) 7.432 ms 6 219.158.14.241 (219.158.14.241) 4.793 ms 5.700 ms 219.158.19.9 (219.158.19.9) 3.718 ms 7 219.158.15.230 (219.158.15.230) 4.028 ms 4.554 ms 219.158.22.138 (219.158.22.138) 4.507 ms 8 202.97.15.169 (202.97.15.169) 7.733 ms 5.502 ms 7.867 ms 9 202.97.63.85 (202.97.63.85) 6.789 ms 5.671 ms 8.205 ms 10 183.61.221.105 (183.61.221.105) 4.051 ms 4.543 ms 4.620 ms 11 183.59.13.222 (183.59.13.222) 12.053 ms 10.832 ms 9.027 ms 12 183.60.128.178 (183.60.128.178) 7.896 ms 12.108 ms 7.790 ms 13 113.105.160.174 (113.105.160.174) 9.567 ms 11.880 ms 11.964 ms 14 * * * 15 121.12.175.19 (121.12.175.19) 8.581 ms 41.236 ms 47.295 ms
------解决思路---------------------- 用域名吧!应该可以的 ------解决思路---------------------- Order deny,allow Allow from all ------解决思路---------------------- 用 file_get_contents 能抓取到,就表示网站设置并没有问题 所以请不要在apache 的配置上找原因 ------解决思路----------------------