From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from mail-ua0-f185.google.com (mail-ua0-f185.google.com [209.85.217.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7E7CD1FF76 for ; Sun, 18 Dec 2016 01:08:13 +0000 (UTC) Received: by mail-ua0-f185.google.com with SMTP id b56sf11431611uaa.0 for ; Sat, 17 Dec 2016 17:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:in-reply-to:references:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=nCFNgkx6g2TWrIKn+h8j1FsFMYwigTsOrBUoDy25qho=; b=KsWgcNCH1z9WEbTSGF/9bE4SjQG+1QrZx7O4+ta0BYqCuTAU/0iRtB6G6J2d0YMU1G E8NbBUcf9azCNFbdR4kT5/VbFyCMSNj6n8WlvLnrMlZ8fgUsVLcRyqB1p7Xy0Twd8grO 3Ijk5/nJTZqJUzjzLj/jnixQ18L1di8ZFvhELu3dkMwbLDQq5no4Nhz6ykTaLQg4pOMY HjkAqgMZ9TwCDU/PfDof6TpJP5ToZpaR4YCYtzXI3zeZL/oTODGZl4ulQHiqylZ6S2qZ jo53S66RneElcLi5a5n3syYewxDuQDM5w55uA4ksUmVJYKFyG1ROOSdr2V6dkLS2pjCH RWCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=nCFNgkx6g2TWrIKn+h8j1FsFMYwigTsOrBUoDy25qho=; b=A7ZfGkXOOIh0/04QcidL9ib8CIEPMsbQZlxP3EpEm1iviug9LlP3qW4WxEAnBW+A15 qJJcasCC6qXxYAQvtR24Sj87GoBIFHxRAUssMNjvMvnHzJ2ncyp3T48oT8tv6arOizAh 1Z1REnkdTN7kVYbqJt8unF6AMsGnpS4APl8ubnUvw7JxIEjDXg1RdG6/OxMglR/Y4JGp AQcFl6kxkTfhftbYyAOeuQla7vxYPoW9mWa6Blkwjr2E3jQEhGM0aIoH/ZcWY30iWswh 1eyvUOYI6hV4FeHmCZC73FkEFICkWW16ws1w+VJSfffRMfHFxJDdybl4KjlksxON3jYl HKwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=nCFNgkx6g2TWrIKn+h8j1FsFMYwigTsOrBUoDy25qho=; b=Y4R05QgFvquwqaE4KdRnyoaYXPB2XpW6iVS3oL5LioqEpnKOE+dsD3IhxO2XufpUkX XoYhGGPWeiempFB2mcJlGN504w66/own6TRTOwus2GD4sf12IH6rXmmDaQzclh1yruGv eULnO3nOkfGxohxiFj6kYkoUY/pL4Hko7gIEh+gJn3Dm5+hPg4V39bBBE+knNA0WtTUP vCrf9cExjPMTPvbQZkdulMj3neSkAs5kXapjLtKSwEqDmEzUxoTGjwFdaiZf4CbBjKbd zBWZPMZt3B21m77fIWmcQ6WNj2rgaH5QfZ5RPJMLcAB4BYtfPnsJqrqmDRq3AzELF710 7QHw== Sender: rack-devel@googlegroups.com X-Gm-Message-State: AIkVDXLUwc5YjQ5Xy+RKmmhCvr8xaGMJwhYbATcOev6eu4PLnwbx4LKazllHJylIaijyOA== X-Received: by 10.157.60.235 with SMTP id t40mr552038otf.0.1482023292674; Sat, 17 Dec 2016 17:08:12 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.157.31.122 with SMTP id x55ls12422035otx.36.gmail; Sat, 17 Dec 2016 17:08:12 -0800 (PST) X-Received: by 10.129.131.145 with SMTP id t139mr2668065ywf.79.1482023291693; Sat, 17 Dec 2016 17:08:11 -0800 (PST) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com. [2607:f8b0:4001:c0b::22f]) by gmr-mx.google.com with ESMTPS id j62si950460itb.2.2016.12.17.17.08.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Dec 2016 17:08:11 -0800 (PST) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c0b::22f as permitted sender) client-ip=2607:f8b0:4001:c0b::22f; Received: by mail-it0-x22f.google.com with SMTP id b132so23517191iti.1 for ; Sat, 17 Dec 2016 17:08:11 -0800 (PST) X-Received: by 10.36.55.202 with SMTP id r193mr10357266itr.89.1482023291370; Sat, 17 Dec 2016 17:08:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.30.14 with HTTP; Sat, 17 Dec 2016 17:08:10 -0800 (PST) Received: by 10.107.30.14 with HTTP; Sat, 17 Dec 2016 17:08:10 -0800 (PST) In-Reply-To: References: From: James Tucker Date: Sat, 17 Dec 2016 17:08:10 -0800 Message-ID: Subject: Re: newby issue with rack-ssl gem To: Rack Development Content-Type: multipart/alternative; boundary=001a1140c6f6d4c4d00543e46f45 X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of jftucker@gmail.com designates 2607:f8b0:4001:c0b::22f as permitted sender) smtp.mailfrom=jftucker@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , --001a1140c6f6d4c4d00543e46f45 Content-Type: text/plain; charset=UTF-8 This is a web server issue, not a rack issue. Most webservers will not let you serve plaintext and TLS over the same port. When I say most, I mean I don't know of any ruby webservers that support this, as all of them rely on openssl listen sockets for TLS. On Dec 17, 2016 5:03 PM, "Rich Morin" wrote: > I'm using Rack via Sinatra and Thin, serving HTTPS on port 44567. That > works, but I'm not able to set up automated transfers from HTTP to HTTPS. > I'm trying to use the rack-ssl gem to force this, but not seeing any > effect. > > > I assume that I'm simply calling it wrong. Might anyone have suggestions? > > > FWIW, here's a Gist that documents and demonstrates the issue: > > > https://gist.github.com/RichMorin/62d5594237e487242f027ca51cafa290 > > > -r > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Rack Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rack-devel+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Rack Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. --001a1140c6f6d4c4d00543e46f45 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is a web server issue, not a rack issue. Most webser= vers will not let you serve plaintext and TLS over the same port. When I sa= y most, I mean I don't know of any ruby webservers that support this, a= s all of them rely on openssl listen sockets for TLS.

On Dec 17, 2016 5:03 PM, "Ri= ch Morin" <rdm@cf= cl.com> wrote:

I'm using Rack via Sinatra and Thin, serving HTTPS on port 44567.= =C2=A0 That works,=C2=A0but I'm not able to set up automat= ed transfers from HTTP to HTTPS. =C2=A0I'm trying to use t= he rack-ssl gem to force this, but not seeing any effect.


I assume=C2=A0that I'm simply calling it wrong.=C2=A0 Might anyone have sugge= stions?


= FWIW, here's a Gist that docum= ents and demonstrates the issue:


=C2=A0https://gist.github.com/RichMorin/62d5594237e487242f027ca51cafa= 290


-r

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups &= quot;Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to rack-dev= el+unsubscribe@googlegroups.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a1140c6f6d4c4d00543e46f45--