https://hostname:4441
nginx監聽4441端口使用https協議,瀏覽器輸入http://hostname:4441報錯
The plain HTTP request was sent to HTTPS port
原因是如果用戶在使用 http 訪問時,就會報497錯誤,
用error_page 處理一下即可:
server { listen 4441 ssl; ... ... error_page 497 https://$host:4441; }
https://hostname:4441
nginx監聽4441端口使用https協議,瀏覽器輸入http://hostname:4441報錯
The plain HTTP request was sent to HTTPS port
原因是如果用戶在使用 http 訪問時,就會報497錯誤,
用error_page 處理一下即可:
server { listen 4441 ssl; ... ... error_page 497 https://$host:4441; }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。