[Labs-l] Redirecting from http to https with lighthttp
Marc A. Pelletier
marc at uberbox.org
Mon Dec 9 13:52:15 UTC 2013
On 12/09/2013 05:41 AM, Dan Michael O. Heggø wrote:
> I'm trying to enforce https for my tool. With webservice started[1], I
> tried putting
>
> $HTTP["scheme"] == "http" {
> url.redirect = (".*" => "https://tools.wmflabs.org$0")
> }
>
> in my .lighthttpd.conf, but it results in an infinite redirect loop.
>
> Dan Michael
>
> [1] https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help/NewWeb
That's because the proxy accepts both but always connects to your
lighttpd over HTTP internally - causing your tool to always redirect.
-- Marc
More information about the Labs-l
mailing list