如何設定 apache 對某些請求使用 https 而不是 http?

如何設定 apache 對某些請求使用 https 而不是 http?

對於我使用 Apache 共享的一些文件,我想確保它們僅透過 https 提供。

我該如何為 Apache 進行設定?

答案1

使用重寫引擎模組。可以在這裡找到說明:

  Apache:將 http 重定向到 https Apache 安全連接 – 強制 HTTPS 連接
  http://www.cyberciti.biz/tips/howto-apache-force-https-secure-connections.html

相關內容