大网数据广告活动
服务器运维问答

Redirect port 443 to port 80 at a firewall?

· 52CE 我爱测

I recently ran into a situation in which a web server I was running could no longer serve HTTPS traffic (due to some SSL cert issues). Since the server could not process this traffic I could not use Apache redirect rules to redir…

问题原文

原帖链接 · d.lanza38 · CC BY-SA 3.0

I recently ran into a situation in which a web server I was running could no longer serve HTTPS traffic (due to some SSL cert issues). Since the server could not process this traffic I could not use Apache redirect rules to redirect to non-https. I then tried redirecting X.X.X.X:443 to X.X.X.X:80 at my firewall/NAT device but couldn't seem to get it to work.

I'm not asking how to do this since it is specific to my infrastructure and devices. But is it possible to do this at all? A colleague suggested it may not be possible since the client is requesting a secure connection, and it was failing because we were responding with an insecure connection. This would be different than responding with a 302 and forcing the client to make a new request for non-https using apache redirects.

已采纳解答

原帖链接 · drookie · CC BY-SA 3.0

Nope. Redirecting port 443 to 80 on firewall will just redirect it. Clients will expect that something SSL-enabled will be answering, and they will get plain HTTP answer instead. This will lead to an error (for example, ssl_error_rx_record_too_long).

Thing you are referring to is called SSL Offloading. It's when something (basically a HTTPS-enabled web server) is offloading SSL/TLS from a HTTPS stream and makes HTTP from it, then passes it to a HTTP web server, acting as a proxy.

Clearly the offloader should not have any issues with any certificates.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。