?
This document uses PHP Chinese website manual Release
X-Forwarded-Proto
(XFP)報頭是用于識別協(xié)議(HTTP 或
HTTPS),其中使用的客戶端連接到代理或負載平衡器一個事實上的標準報頭。您的服務器訪問日志包含在服務器和負載平衡器之間使用的協(xié)議,但不包括客戶端和負載平衡器之間使用的協(xié)議。要確定客戶端和負載平衡器之間使用的協(xié)議,X-Forwarded-Proto
可以使用請求標頭。
此標頭的標準化版本是 HTTP Forwarded
標頭。
Header type | Request header |
---|---|
Forbidden header name | no |
X-Forwarded-Proto: <protocol>
<protocol> 轉發(fā)的協(xié)議(http 或 https)。
X-Forwarded-Proto: https
其他非標準形式:
# Microsoft Front-End-Https: on X-Forwarded-Protocol: https X-Forwarded-Ssl: on X-Url-Scheme: https
不是任何當前規(guī)范的一部分。這個標題的標準化版本是Forwarded
。