V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
XianZaiZhuCe
V2EX  ›  HTTP

想把现有的网站程序改为 https,完全不知道思路

  •  
  •   XianZaiZhuCe · 2015-09-25 07:43:33 +08:00 via Android · 2232 次点击
    这是一个创建于 3136 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在知道了需要购买证书,需要在 apache 里面做一些设置。但是具体怎么做还是没什么思路,百度并没有什么用。求指点,谢谢大家
    ljbha007
        1
    ljbha007  
       2015-09-25 07:52:01 +08:00   ❤️ 1
    http://httpd.apache.org/docs/2.4/ssl/ssl_howto.html

    这么配一下就好了 把你买的证书和私钥放到服务器上 改下 httpd.conf 就可以了
    feather12315
        2
    feather12315  
       2015-09-25 08:37:30 +08:00 via Android   ❤️ 1
    顺便把 80 端口访问重定向
    powtop
        3
    powtop  
       2015-09-25 08:44:36 +08:00   ❤️ 1
    just like it https://powtop.com

    #伪静态规则
    RewriteEngine on
    RewriteBase / #我这行是没有配置
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
    XianZaiZhuCe
        4
    XianZaiZhuCe  
    OP
       2015-09-25 08:46:30 +08:00
    @ljbha007 这样的话,前后台传输数据就是通过 https 了? 不知道问的对不对...望包涵...
    v1024
        5
    v1024  
       2015-09-25 08:48:16 +08:00 via iPhone   ❤️ 1
    先把外链的资源替换成 https ,比如 cdn 资源;然后再换首页的。
    ljbha007
        6
    ljbha007  
       2015-09-25 08:53:18 +08:00   ❤️ 1
    @XianZaiZhuCe 是的 页面上的资源文件最好用相对路径 不然得从头改成 https 协议
    neutrino
        7
    neutrino  
       2015-09-25 08:54:24 +08:00
    为啥要用 https 呢。。
    XianZaiZhuCe
        8
    XianZaiZhuCe  
    OP
       2015-09-25 08:57:41 +08:00
    @neutrino 瞎折腾...不然啥都不懂呀
    ljbha007
        9
    ljbha007  
       2015-09-25 09:01:08 +08:00
    @neutrino 防止中间人攻击、 session 劫持等
    XianZaiZhuCe
        10
    XianZaiZhuCe  
    OP
       2015-09-25 09:32:34 +08:00
    @powtop 首页是正常的。而这个页面 https://powtop.com/#!15 点进去会有问题,“与此网站的连接不完全安全,因为其包含了未加密的元素” “ Firefox 阻止了此页面上的部分内容”
    powtop
        11
    powtop  
       2015-09-25 12:21:32 +08:00
    @XianZaiZhuCe 因为用了多说 多说现在还没 https
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2840 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:02 · PVG 20:02 · LAX 05:02 · JFK 08:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.