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删除。