急急~~~网站发布不能访问的问题,求助大神~~~~~

lbc2247117 2015-04-02 09:18:37
我买了一个空间,然后把网站在空间里发布了,用的是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又能通~~

现在不知道是哪里出了问题了,求助大神~~
...全文
600 37 打赏 收藏 转发到动态 举报
写回复
用AI写文章
37 条回复
切换为时间正序
请发表友善的回复…
发表回复
网络科技 2015-04-05
  • 打赏
  • 举报
回复
引用 36 楼 lbc2247117 的回复:
搞不定了,我把aphche换成了IIS,现在正常了。感谢大家的热情帮助,现在结贴!
如此看来,应该是aphche服务器的问题了
傲雪星枫 2015-04-03
  • 打赏
  • 举报
回复
樓主解決了嗎?
Emma chen 2015-04-03
  • 打赏
  • 举报
回复
为神哦咧,这个问题
lbc2247117 2015-04-03
  • 打赏
  • 举报
回复
搞不定了,我把aphche换成了IIS,现在正常了。感谢大家的热情帮助,现在结贴!
涿郡小民 2015-04-03
  • 打赏
  • 举报
回复
是权限设置的问题…把网站文件夹设为744?
夜间独行 2015-04-03
  • 打赏
  • 举报
回复
1.文件目录权限 2.服务器设置 3.如果是使用gii生成东西 的话,有ip限制
lbc2247117 2015-04-03
  • 打赏
  • 举报
回复
引用 32 楼 fdipzone 的回复:
樓主解決了嗎?
后来换了wamp2.4的版本,配置好后,能访问了。但是新问题又来了,apache启动几分钟之后,就访问不了,必须重启后才能访问,过几分钟又访问不了。 我看错误日志,提示指定的网络名不再可用,然后我关掉了AcceptEx,就没这个错误了,但是还是访问不了。而且错误日志和访问日志都没记录了。
lbc2247117 2015-04-02
  • 打赏
  • 举报
回复
引用 12 楼 xuzuning 的回复:
是你的不就对了吗? 能访问还不行吗? 用程序能抓取到,但用浏览器打不开。 显然你的网站中的 js 有问题
但是为什么我本地用浏览器能打开呀,而且我把网站换成静态页面,用浏览器也不能打开呢。应该不是JS的问题吧
傲雪星枫 2015-04-02
  • 打赏
  • 举报
回复
引用 12 楼 xuzuning 的回复:
是你的不就对了吗? 能访问还不行吗? 用程序能抓取到,但用浏览器打不开。 显然你的网站中的 js 有问题
不是的,使用curl也不行。另外,如果是js問題, view-source:http://121.12.175.19/ 這樣就不會調用js了,也不能訪問。
xuzuning 2015-04-02
  • 打赏
  • 举报
回复
是你的不就对了吗? 能访问还不行吗? 用程序能抓取到,但用浏览器打不开。 显然你的网站中的 js 有问题
傲雪星枫 2015-04-02
  • 打赏
  • 举报
回复
比較奇怪,file_get_contents可以獲取到,用curl和瀏覽器不行。 66665: SOCKET 121.12.175.19:80 Start Time: 2015-04-02 11:42:19.225 t=189357 [st= 0] +SOCKET_ALIVE [dt=17977] --> source_dependency = 66662 (CONNECT_JOB) t=189357 [st= 0] +TCP_CONNECT [dt=11] --> address_list = ["121.12.175.19:80"] t=189357 [st= 0] TCP_CONNECT_ATTEMPT [dt=11] --> address = "121.12.175.19:80" t=189368 [st= 11] -TCP_CONNECT --> source_address = "192.168.101.217:54525" t=189368 [st= 11] +SOCKET_IN_USE [dt=17966] --> source_dependency = 66678 (HTTP_STREAM_JOB) t=189368 [st= 11] SOCKET_BYTES_SENT --> byte_count = 437 t=207334 [st=17977] SOCKET_READ_ERROR --> net_error = -7 (ERR_TIMED_OUT) --> os_error = 60 t=207334 [st=17977] -SOCKET_IN_USE t=207334 [st=17977] -SOCKET_ALIVE
lbc2247117 2015-04-02
  • 打赏
  • 举报
回复
引用 5 楼 fdipzone 的回复:
ping是很快,但訪問頁面很慢,可以試試放一個靜態頁面看看。
试过放静态页面了,也是一样的
lbc2247117 2015-04-02
  • 打赏
  • 举报
回复
引用 7 楼 xuzuning 的回复:
echo file_get_contents('http://121.12.175.19');
<!doctype html>
<html class="0663ec-pc w1200">
<head>
<title>  左航网</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="generator" content="0663ec" />
<meta name="renderer" content="webkit">
<meta name="version" content="2015-1-1 0663.ec">
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
........
是你的吗?
是我的呢,我没有指定来源呢,在哪里查看是否被指定来源了。
bonlog 2015-04-02
  • 打赏
  • 举报
回复
引用 7 楼 xuzuning 的回复:
echo file_get_contents('http://121.12.175.19');
<!doctype html>
<html class="0663ec-pc w1200">
<head>
<title>  左航网</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="generator" content="0663ec" />
<meta name="renderer" content="webkit">
<meta name="version" content="2015-1-1 0663.ec">
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
........
是你的吗?
不是,不是这个
xuzuning 2015-04-02
  • 打赏
  • 举报
回复
echo file_get_contents('http://121.12.175.19');
<!doctype html>
<html class="0663ec-pc w1200">
<head>
<title>  左航网</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="generator" content="0663ec" />
<meta name="renderer" content="webkit">
<meta name="version" content="2015-1-1 0663.ec">
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
........
是你的吗?
xuzuning 2015-04-02
  • 打赏
  • 举报
回复
print_r(get_headers('http://121.12.175.19'));
Array
(
    [0] => HTTP/1.1 200 OK
    [1] => Date: Thu, 02 Apr 2015 02:53:44 GMT
    [2] => Server: Apache/2.2.21 (Win32) PHP/5.3.10
    [3] => X-Powered-By: Ftxia 6.0
    [4] => Set-Cookie: PHPSESSID=q90d1eae6c799rc3srg02c0da0; path=/
    [5] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
    [6] => Cache-Control: private
    [7] => Pragma: no-cache
    [8] => Connection: close
    [9] => Content-Type: text/html; charset=utf-8
)

应该没有问题的 是否你指定了来源?
傲雪星枫 2015-04-02
  • 打赏
  • 举报
回复
ping是很快,但訪問頁面很慢,可以試試放一個靜態頁面看看。
傲雪星枫 2015-04-02
  • 打赏
  • 举报
回复
很慢,無法連接 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
lbc2247117 2015-04-02
  • 打赏
  • 举报
回复
引用 1 楼 xuzuning 的回复:
请给出域名!
域名还在备案,我直接用IP访问的。 IP是:121.12.175.19.
xuzuning 2015-04-02
  • 打赏
  • 举报
回复
请给出域名!
加载更多回复(16)

21,892

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧