V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
yuedingwangji
V2EX  ›  NGINX

nginx 做反向代理的时候如何最大程度避免向 upstream 请求

  •  
  •   yuedingwangji · Oct 16, 2017 · 3490 views
    This topic created in 3115 days ago, the information mentioned may be changed or developed.

    nginx 可以做到非动态请求都直接由本机应答么? 就是本机缓存 upstream 的文件,然后请求的时候,本机直接应答 可能说得不太准确,请见谅

    vus520
        1
    vus520  
       Oct 16, 2017
    你要找的叫 proxy_cache, 不谢
    boboliu
        2
    boboliu  
       Oct 17, 2017
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 05:38 · PVG 13:38 · LAX 22:38 · JFK 01:38
    ♥ Do have faith in what you're doing.