NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
Septembers
V2EX  ›  NGINX

nginx 如何实现针对 IE 9 以下响应指定 HTML 文件?

  •  
  •   Septembers · Nov 19, 2015 · 2786 views
    This topic created in 3910 days ago, the information mentioned may be changed or developed.
    3 replies    2015-11-19 12:44:54 +08:00
    chinvo
        1
    chinvo  
       Nov 19, 2015   ❤️ 1
    或许你需要:
    1) ngx_lua
    2) 在后端 CGI/FastCGI 做处理
    3) HTML <!--if -->
    4) JS
    pubby
        2
    pubby  
       Nov 19, 2015 via Android
    有 user agent 变量,可正则判断,没啥难度啊
    jarlyyn
        3
    jarlyyn  
       Nov 19, 2015   ❤️ 1
    理论上,返回临时页,<!--if-->加 cookie,Js 刷新。

    nginx 怎么知道是 IE9 以下....request header 又不可信。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6105 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 02:53 · PVG 10:53 · LAX 19:53 · JFK 22:53
    ♥ Do have faith in what you're doing.