Init: Session Cache is not configured [hint: SSLSessionCache] 是?
這個訊息是 Apache HTTP Server 在啟動時的提示,跟 SSL/TLS 模組 (mod_ssl) 有關。
拆解:
Init: Session Cache is not configured
→ 表示 SSL 模組初始化時發現「沒有設定 Session Cache」。
[hint: SSLSessionCache]
→ 提示你需要設定 SSLSessionCache 指令。
背景:
在 HTTPS 連線中,伺服器與客戶端會建立 SSL/TLS session。
為了加快後續連線,Apache 可以把 session 資訊暫存起來(Session Cache),避免每次都重新握手。
如果沒有設定 Session Cache,SSL 還是能用,但效能會比較差,因為每次都要完整握手。
常見解決方式:
在 Apache 的設定檔(例如 httpd-ssl.conf 或 httpd.conf)裡加上類似設定:
# 啟用 SSL Session Cache
SSLSessionCache "shmcb:C:/AppServ/Apache24/logs/ssl_scache(512000)"
SSLSessionCacheTimeout 300
總結:
這不是錯誤,而是提醒你 SSL Session Cache 沒有設定。
伺服器還是能跑 HTTPS,只是效能不佳。建議依照提示加上 SSLSessionCache 設定,讓 SSL/TLS 連線更快。