{"action":"created","issue":{"url":"https://api.github.com/repos/fabiolb/fabio/issues/448","repository_url":"https://api.github.com/repos/fabiolb/fabio","labels_url":"https://api.github.com/repos/fabiolb/fabio/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/fabiolb/fabio/issues/448/comments","events_url":"https://api.github.com/repos/fabiolb/fabio/issues/448/events","html_url":"https://github.com/fabiolb/fabio/issues/448","id":299414042,"number":448,"title":"Redirect http to https on the same destination","user":{"login":"atillamas","id":6222280,"avatar_url":"https://avatars2.githubusercontent.com/u/6222280?v=4","gravatar_id":"","url":"https://api.github.com/users/atillamas","html_url":"https://github.com/atillamas","followers_url":"https://api.github.com/users/atillamas/followers","following_url":"https://api.github.com/users/atillamas/following{/other_user}","gists_url":"https://api.github.com/users/atillamas/gists{/gist_id}","starred_url":"https://api.github.com/users/atillamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atillamas/subscriptions","organizations_url":"https://api.github.com/users/atillamas/orgs","repos_url":"https://api.github.com/users/atillamas/repos","events_url":"https://api.github.com/users/atillamas/events{/privacy}","received_events_url":"https://api.github.com/users/atillamas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-22T16:14:08Z","updated_at":"2018-02-22T20:38:42Z","closed_at":null,"author_association":"NONE","body":"Hi, is it possible to use fabio to redirect http to https on the same destination? for example redirect http://example.com to https://example.com ? when I've tried it i just get a redirect-loop."},"comment":{"url":"https://api.github.com/repos/fabiolb/fabio/issues/comments/367814474","html_url":"https://github.com/fabiolb/fabio/issues/448#issuecomment-367814474","issue_url":"https://api.github.com/repos/fabiolb/fabio/issues/448","id":367814474,"user":{"login":"atillamas","id":6222280,"avatar_url":"https://avatars2.githubusercontent.com/u/6222280?v=4","gravatar_id":"","url":"https://api.github.com/users/atillamas","html_url":"https://github.com/atillamas","followers_url":"https://api.github.com/users/atillamas/followers","following_url":"https://api.github.com/users/atillamas/following{/other_user}","gists_url":"https://api.github.com/users/atillamas/gists{/gist_id}","starred_url":"https://api.github.com/users/atillamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atillamas/subscriptions","organizations_url":"https://api.github.com/users/atillamas/orgs","repos_url":"https://api.github.com/users/atillamas/repos","events_url":"https://api.github.com/users/atillamas/events{/privacy}","received_events_url":"https://api.github.com/users/atillamas/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T20:38:41Z","updated_at":"2018-02-22T20:38:41Z","author_association":"NONE","body":"@magiconair Sure thing, i created a completely new stack, exact copy of our staging, just running one single job, exactly the same behaviour\r\n\r\n```\r\njob \"http-echo\" {\r\n    datacenters = [\"eu-west-1\"]\r\n    group \"service\" {\r\n        count = 2\r\n\tconstraint {\r\n\t\toperator = \"distinct_hosts\"\r\n\t\tvalue = \"true\"\r\n\t}\r\n        update {\r\n                max_parallel = 1\r\n                min_healthy_time = \"30s\"\r\n                healthy_deadline = \"5m\"\r\n        }\r\n        task \"http-echo\" {\r\n            driver = \"docker\"\r\n            config {\r\n                image = \"hashicorp/http-echo\"\r\n                port_map {\r\n                        echo = 5678\r\n                }\r\n                args  = [\"-text\", \" version4: ${node.unique.name}\"]\r\n            }\r\n            service {\r\n                name = \"http-echo\"\r\n                tags = [\"http-echo\",\"urlprefix-echo.staging.budbee.com/\"]\r\n                port = \"echo\"\r\n                check {\r\n                    type     = \"http\"\r\n                    path     = \"/\"\r\n                    interval = \"5s\"\r\n                    timeout  = \"2s\"\r\n                    port     = \"echo\"\r\n                }\r\n            }\r\n            resources {\r\n                cpu = 500\r\n                network {\r\n                    port \"echo\" { }\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n```\r\n\r\n```\r\nubuntu@ip-10-0-62-158:~$ curl localhost:9998/api/routes?raw\r\nroute add http-redirect echo.staging.budbee.com:80/ https://echo.staging.budbee.com$path opts \"redirect=301\"\r\nroute add http-echo echo.staging.budbee.com/ http://10.0.62.158:26296/ tags \"http-echo\"\r\nroute add http-echo echo.staging.budbee.com/ http://10.0.61.154:23384/ tags \"http-echo\"\r\n```\r\n\r\n```\r\ncurl --http1.1 --max-redirs 3 -vL echo.staging.budbee.com\r\n* Rebuilt URL to: echo.staging.budbee.com/\r\n*   Trying 52.30.193.125...\r\n* TCP_NODELAY set\r\n* Connected to echo.staging.budbee.com (52.30.193.125) port 80 (#0)\r\n> GET / HTTP/1.1\r\n> Host: echo.staging.budbee.com\r\n> User-Agent: curl/7.55.1\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 301 Moved Permanently\r\n< Date: Thu, 22 Feb 2018 20:36:58 GMT\r\n< Content-Type: text/html; charset=utf-8\r\n< Content-Length: 67\r\n< Connection: keep-alive\r\n< Location: https://echo.staging.budbee.com/\r\n< \r\n* Ignoring the response-body\r\n* Connection #0 to host echo.staging.budbee.com left intact\r\n* Issue another request to this URL: 'https://echo.staging.budbee.com/'\r\n*   Trying 52.30.193.125...\r\n* TCP_NODELAY set\r\n* Connected to echo.staging.budbee.com (52.30.193.125) port 443 (#1)\r\n* ALPN, offering http/1.1\r\n* Cipher selection: PROFILE=SYSTEM\r\n* successfully set certificate verify locations:\r\n*   CAfile: /etc/pki/tls/certs/ca-bundle.crt\r\n  CApath: none\r\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\r\n* TLSv1.2 (IN), TLS handshake, Server hello (2):\r\n* TLSv1.2 (IN), TLS handshake, Certificate (11):\r\n* TLSv1.2 (IN), TLS handshake, Server key exchange (12):\r\n* TLSv1.2 (IN), TLS handshake, Server finished (14):\r\n* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):\r\n* TLSv1.2 (OUT), TLS change cipher, Client hello (1):\r\n* TLSv1.2 (OUT), TLS handshake, Finished (20):\r\n* TLSv1.2 (IN), TLS handshake, Finished (20):\r\n* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256\r\n* ALPN, server accepted to use http/1.1\r\n* Server certificate:\r\n*  subject: CN=budbee.com\r\n*  start date: May 17 00:00:00 2017 GMT\r\n*  expire date: Jun 17 12:00:00 2018 GMT\r\n*  subjectAltName: host \"echo.staging.budbee.com\" matched cert's \"*.staging.budbee.com\"\r\n*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon\r\n*  SSL certificate verify ok.\r\n> GET / HTTP/1.1\r\n> Host: echo.staging.budbee.com\r\n> User-Agent: curl/7.55.1\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 301 Moved Permanently\r\n< Date: Thu, 22 Feb 2018 20:36:58 GMT\r\n< Content-Type: text/html; charset=utf-8\r\n< Content-Length: 67\r\n< Connection: keep-alive\r\n< Location: https://echo.staging.budbee.com/\r\n< \r\n* Ignoring the response-body\r\n* Connection #1 to host echo.staging.budbee.com left intact\r\n* Issue another request to this URL: 'https://echo.staging.budbee.com/'\r\n* Found bundle for host echo.staging.budbee.com: 0x55795ae5a090 [can pipeline]\r\n* Re-using existing connection! (#1) with host echo.staging.budbee.com\r\n* Connected to echo.staging.budbee.com (52.30.193.125) port 443 (#1)\r\n> GET / HTTP/1.1\r\n> Host: echo.staging.budbee.com\r\n> User-Agent: curl/7.55.1\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 301 Moved Permanently\r\n< Date: Thu, 22 Feb 2018 20:36:58 GMT\r\n< Content-Type: text/html; charset=utf-8\r\n< Content-Length: 67\r\n< Connection: keep-alive\r\n< Location: https://echo.staging.budbee.com/\r\n< \r\n* Ignoring the response-body\r\n* Connection #1 to host echo.staging.budbee.com left intact\r\n* Issue another request to this URL: 'https://echo.staging.budbee.com/'\r\n* Found bundle for host echo.staging.budbee.com: 0x55795ae5a090 [can pipeline]\r\n* Re-using existing connection! (#1) with host echo.staging.budbee.com\r\n* Connected to echo.staging.budbee.com (52.30.193.125) port 443 (#1)\r\n> GET / HTTP/1.1\r\n> Host: echo.staging.budbee.com\r\n> User-Agent: curl/7.55.1\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 301 Moved Permanently\r\n< Date: Thu, 22 Feb 2018 20:36:58 GMT\r\n< Content-Type: text/html; charset=utf-8\r\n< Content-Length: 67\r\n< Connection: keep-alive\r\n< Location: https://echo.staging.budbee.com/\r\n< \r\n* Ignoring the response-body\r\n* Connection #1 to host echo.staging.budbee.com left intact\r\n* Maximum (3) redirects followed\r\ncurl: (47) Maximum (3) redirects followed\r\n```"}}
{"actor":{"display_login":"atillamas"}}