[Labs-l] Redirecting from http to https with lighthttp

Dan Michael O. Heggø danmichaelo+wikipedia at gmail.com
Mon Dec 9 10:41:46 UTC 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20131209/02d8053f/attachment.html>


More information about the Labs-l mailing list