V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
danube533
V2EX  ›  问与答

nginx 里如何配置,使 xp 系统的用户访问 http,win7 以上用户访问 https

  •  
  •   danube533 · 2014-11-13 11:48:44 +08:00 · 2960 次点击
    这是一个创建于 3452 天前的主题,其中的信息可能已经有所发展或是发生改变。
    由于xp不支持sni,果断放弃https访问...
    6 条回复    2014-11-13 15:00:43 +08:00
    blijf
        1
    blijf  
       2014-11-13 12:44:52 +08:00
    用的cloudflare SSL
    之前也有考虑过,不过由于自己博客 ,没所谓了
    USERAGENT不知道行不行
    extreme
        2
    extreme  
       2014-11-13 13:06:23 +08:00
    为什么Windowd XP不支持SNI?
    Windows XP也不会落后到HTTP请求不带hosts吧。
    支不支持SNI目前主要取决于HTTP Server了,Nginx不就是通过HTTP请求头中host的内容判断用哪个站点SSL证书的吗?
    ooxxcc
        3
    ooxxcc  
       2014-11-13 13:11:00 +08:00
    @extreme google一下你就知道
    extreme
        4
    extreme  
       2014-11-13 13:21:33 +08:00
    @ooxxcc 之前用Windows XP,开始自己开网站前就没用IE了,不太了解。
    可以用正则表达式判断一下$http_user_agent。
    ooxxcc
        5
    ooxxcc  
       2014-11-13 13:26:44 +08:00
    @extreme 支不支持SNI目前主要取决于HTTP Server了//这句有误 No support for any Internet Explorer version on Windows XP because SNI depends on the SChannel system component shipped with Windows Vista.[7]

    ref http://en.wikipedia.org/wiki/Server_Name_Indication

    LZ的情况所有访问默认http,然后判断一下useragent再跳转就好了
    orzfly
        6
    orzfly  
       2014-11-13 15:00:43 +08:00
    不过,默认访问 HTTP 小心 HTTPStrip 啊……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1020 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:59 · PVG 06:59 · LAX 15:59 · JFK 18:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.