nginx緩存cache的5種方案

nginx緩存cache的5種方案   一、傳統緩存之一(404)   這個辦法是把nginx的404錯誤定向到後端,而後用proxy_store把後端返回的頁面保存。   配置:   location / {   root /home/html/;#主目錄   expires 1d;#網頁的過時時間   error_page 404 =200 /fetch$request_uri;#404定向到
相關文章
相關標籤/搜索