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

Liangent liangent at gmail.com
Mon Dec 9 14:45:02 UTC 2013


btw see https://bugzilla.wikimedia.org/show_bug.cgi?id=53689
On Dec 9, 2013 10:34 PM, "Dan Michael O. Heggø" <
danmichaelo+wikipedia at gmail.com> wrote:

> Aha... so then there is no way to know if the connection to the proxy is
> secure or not? Would it be possible to configure the proxy server to
> add HTTP_X_FORWARDED_SSL or HTTP_X_FORWARDED_PORT or something else that
> could be checked in php?
>
> Dan Michael
>
>
> On 9 December 2013 14:52, Marc A. Pelletier <marc at uberbox.org> wrote:
>
>> 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
>>
>>
>>
>> _______________________________________________
>> Labs-l mailing list
>> Labs-l at lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/labs-l
>>
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20131209/1e74a1aa/attachment-0001.html>


More information about the Labs-l mailing list