[英]Authenticate, Redirect to HTTPS and Rewrite url in Apache 2.4
I am running a Python http server (Waitress) behind an Apache 2.4 web server. 我在Apache 2.4 Web服务器后面运行Python http服务器(Waitress)。 I have a rewrite rule to make Apache actually access an internal port (55555) in my system (the port that Waitress serves).
我有一个重写规则,以使Apache实际访问系统中的内部端口(55555)(Waitress服务的端口)。 This works well.
这很好。 Waitress cannot serve HTTPS.
服务生无法提供HTTPS。
But now I need two more things: force users to always use HTTPS and authenticate users with Apache's own AuthType Basic
. 但是现在我还需要两件事:强制用户始终使用HTTPS并使用Apache自己的
AuthType Basic
验证用户身份。 Is it possible to have all these three things together? 是否可以将所有这三件事放在一起? This "double redirection"!
这个“双重重定向”!
Should happen in this order: 应按以下顺序发生:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.