Apache在同一个端口上同时回答HTTP和HTTPS

我试图让Apacheredirect从http到https,但是我希望他们都在同一个端口(20100年,但我怀疑这将是重要的)。 基本上这里发生了什么,除了我不这样做的webmin。 目前我已经configuration为服务HTTPS,当我用HTTP访问时,我得到:

Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. 

似乎有很多类似的问题,但我无法find一个实际上回答我的问题。

这对于Apache来说是不可能的。 使用Apache,您不能在同一端口上运行HTTPS和HTTP。

我知道一些端口多路复用器旨在使HTTPS / OpenVPN和SSH在同一端口上运行,但是这些需要额外的软件。

  • SSLH: http ://www.rutschle.net/tech/sslh.shtml
  • Multiplex: http : //www.pond-weed.com/multiplex/ (似乎已经死了)