我试图让 apache 从 http 重定向到 https,但是我希望它们都在同一个端口上(20100,但我怀疑这是否重要)。基本上这里发生了什么,除了我不是为 webmin 做这件事。目前我已将其配置为提供 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.
Run Code Online (Sandbox Code Playgroud)
似乎有很多有点相似的问题,但是我无法找到一个真正回答我的问题的问题。