开发者社区> 问答> 正文

apache绑定域名问题

https://help.aliyun.com/document_detail/44595.html?spm=5176.doc44620.6.702.xNfr38
按照这个一键安装了web环境
httpd.conf添加


重启apache


域名解析已经ping通了,但是绑定应该有问题,无法访问,哪位大神帮我看看是啥问题啊

展开
收起
盖是英雄 2017-06-15 23:01:58 3724 0
3 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    抱歉给您带来不便。

    请尝试运行 netstat -noa | grep :80 的命令,看看web有没有成功启动且在80端口上监听使用。

    -------------------------

    回 6楼(盖是英雄) 的帖子
    您好,

    现在测试,80端口是可以从外面访问的喔:


    --2017-06-16 15:15:32--   http://47.89.184.70/
    Connecting to 47.89.184.70:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 20472 (20K) [text/html]
    Saving to: ‘index.html.3’




    -------------------------

    回 8楼(盖是英雄) 的帖子
    您好,

    请问当前服务器上有几个站点需要设置呢?

    -------------------------

    回 11楼(盖是英雄) 的帖子
    您好,

    现在测试,好象 www 可以访问喔。

    --2017-06-19 10:52:49--   http://www.baidujs.com/
    Resolving www.baidujs.com (www.baidujs.com)... 47.89.184.70
    Connecting to www.baidujs.com (www.baidujs.com)|47.89.184.70|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 20472 (20K) [text/html]
    Saving to: 'index.html.1'

    index.html.1             100%[==================================>]  19.99K  --.-KB/s   in 0.03s

    2017-06-19 10:52:49 (713 KB/s) - 'index.html.1' saved [20472/20472]




    2017-06-16 10:36:37
    赞同 展开评论 打赏
  • 乐善好施
    安全组规则 有没有允许80端口

    -------------------------

    v host 不要加IP

    2017-06-16 07:59:07
    赞同 展开评论 打赏
  • Reapache绑定域名问题

    -------------------------

    回 2楼火蓝云的帖子
    添加过80端口了

    -------------------------

    回 5楼dongshan8的帖子
    是这样的,这个是off吧

    -------------------------

    回 7楼dongshan8的帖子
    ip是可以访问,但是现在无法绑定域名

    -------------------------

    回 9楼dongshan8的帖子
    只有一个站

    -------------------------

    回 9楼dongshan8的帖子
    域名不带www可以打开了,但是ServerName改成带www就不行了
    2017-06-15 23:02:58
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像