Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

Nginx:僅快取首頁

tag-icon 2024-6-22 • tag-icon nginx cache
Nginx:僅快取首頁

如何指定位置指令來快取我的主頁,而無需任何檔案名稱或副檔名後綴。

我只需要快取 site.com 上的主頁,而不緩存其下的任何內容(即 site.com/page.php)。

答案1

聲明具有嚴格匹配和快取的位置:

location = / {
      proxy_pass ...;
      proxy_cache ...;
}
THE END
在實時伺服器上新增 PHP5 的 CLI 在實時伺服器上新增 PHP5 的 CLI
如何在使用者登入之前使網路連線完全載入? 如何在使用者登入之前使網路連線完全載入?

相關內容

熱門問答

熱門問答

  • nginx
  • cache
  • php
  • command-line-interface
  • php5
  • windows
  • windows-server-2008
  • active-directory

© 2024 rvso.com 版權所有. 網站地圖