{"action":"created","issue":{"url":"https://api.github.com/repos/inconshreveable/ngrok/issues/227","labels_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/227/comments","events_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/227/events","html_url":"https://github.com/inconshreveable/ngrok/issues/227","id":66272123,"number":227,"title":"The plain HTTP request was sent to HTTPS port","user":{"login":"ianwalter","id":122028,"avatar_url":"https://avatars.githubusercontent.com/u/122028?v=3","gravatar_id":"","url":"https://api.github.com/users/ianwalter","html_url":"https://github.com/ianwalter","followers_url":"https://api.github.com/users/ianwalter/followers","following_url":"https://api.github.com/users/ianwalter/following{/other_user}","gists_url":"https://api.github.com/users/ianwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/ianwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianwalter/subscriptions","organizations_url":"https://api.github.com/users/ianwalter/orgs","repos_url":"https://api.github.com/users/ianwalter/repos","events_url":"https://api.github.com/users/ianwalter/events{/privacy}","received_events_url":"https://api.github.com/users/ianwalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-04T04:08:06Z","updated_at":"2015-06-25T19:35:10Z","closed_at":null,"body":"I'm running this:\r\n```\r\nngrok -hostname=dev.myhostname.io -proto=https 192.168.59.103:443\r\n```\r\nWhen I go to https://dev.myhostname.io nginx returns a 400 error saying \"The plain HTTP request was sent to HTTPS port\"\r\n\r\nIf I add dev.myhostname.io to my hosts file and navigate there or to the ip address without ngrok running, the site displays just fine."},"comment":{"url":"https://api.github.com/repos/inconshreveable/ngrok/issues/comments/115371984","html_url":"https://github.com/inconshreveable/ngrok/issues/227#issuecomment-115371984","issue_url":"https://api.github.com/repos/inconshreveable/ngrok/issues/227","id":115371984,"user":{"login":"inconshreveable","id":836692,"avatar_url":"https://avatars.githubusercontent.com/u/836692?v=3","gravatar_id":"","url":"https://api.github.com/users/inconshreveable","html_url":"https://github.com/inconshreveable","followers_url":"https://api.github.com/users/inconshreveable/followers","following_url":"https://api.github.com/users/inconshreveable/following{/other_user}","gists_url":"https://api.github.com/users/inconshreveable/gists{/gist_id}","starred_url":"https://api.github.com/users/inconshreveable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inconshreveable/subscriptions","organizations_url":"https://api.github.com/users/inconshreveable/orgs","repos_url":"https://api.github.com/users/inconshreveable/repos","events_url":"https://api.github.com/users/inconshreveable/events{/privacy}","received_events_url":"https://api.github.com/users/inconshreveable/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T19:35:10Z","updated_at":"2015-06-25T19:35:10Z","body":"Ah! Oops I misread your original issue, that's not it at all.\n\nWhen you specify '-crt' and '-key' then ngrok terminates the TLS traffic for you, which is not what you want when forwarding to 443 which expects TLS traffic. Try removing key/crt options or forward to port 80 instead which is going to expect unencrypted traffic\n\n\n> On Jun 25, 2015, at 12:27 PM, Andrew Ellis <notifications@github.com> wrote:\n> \n> unnel Status                 online\n> Version                       2.0.19/2.0.19\n> Web Interface                 http://127.0.0.1:4040\n> Forwarding                    tls://app.dev.kickaconference.com -> localhost:443\n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}