{"action":"created","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/1152","repository_url":"https://api.github.com/repos/mholt/caddy","labels_url":"https://api.github.com/repos/mholt/caddy/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/1152/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/1152/events","html_url":"https://github.com/mholt/caddy/issues/1152","id":180272760,"number":1152,"title":"Infinite Redirect with Caddy 0.9.3","user":{"login":"dominikschulz","id":1449175,"avatar_url":"https://avatars.githubusercontent.com/u/1449175?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikschulz","html_url":"https://github.com/dominikschulz","followers_url":"https://api.github.com/users/dominikschulz/followers","following_url":"https://api.github.com/users/dominikschulz/following{/other_user}","gists_url":"https://api.github.com/users/dominikschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikschulz/subscriptions","organizations_url":"https://api.github.com/users/dominikschulz/orgs","repos_url":"https://api.github.com/users/dominikschulz/repos","events_url":"https://api.github.com/users/dominikschulz/events{/privacy}","received_events_url":"https://api.github.com/users/dominikschulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-09-30T10:36:04Z","updated_at":"2016-10-08T13:36:15Z","closed_at":null,"body":"### 1. What version of Caddy are you running (`caddy -version`)?\r\n\r\nCaddy 0.9.3\r\n\r\n### 2. What are you trying to do?\r\n\r\nServe https with automatic SSL\r\n\r\n### 3. What is your entire Caddyfile?\r\n```text\r\nhttps://sub.domain.com\r\n\r\nlog stdout\r\nprometheus 0.0.0.0:9180\r\n\r\ntls user@domain.com\r\n\r\nproxy / upstream:80 {\r\n  transparent\r\n}\r\n```\r\n\r\n### 4. How did you run Caddy (give the full command and describe the execution environment)?\r\n\r\ndocker run -d --link upstream -p 0.0.0.0:80:80 -p 0.0.0.0:443:443 my-caddy-image\r\n\r\n### 5. What did you expect to see?\r\n\r\nThe content of https://sub.domain.com/\r\n\r\n### 6. What did you see instead (give full error messages and/or log)?\r\n\r\nInfinite redirects from https://sub.domain.com/ to https://sub.domain.com/\r\n\r\n### 7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?\r\n\r\nUse this Dockerfile:\r\n```text\r\nFROM alpine:3.4\r\nRUN apk --update --no-cache add \\\r\n  ca-certificates \\\r\n  curl \\\r\n  git \\\r\n  openssh-client \\\r\n  && rm -rf /var/cache/apk/*\r\nRUN mkdir -p /bin /srv\r\nRUN curl -fsSL \"https://caddyserver.com/download/build?os=linux&arch=amd64&features=cors%2Cgit%2Chugo%2Cminify%2Cprometheus%2Cratelimit%2Crealip%2Csearch%2Ccloudflare%2Cgooglecloud%2Croute53\" -o /tmp/caddy.tar.gz \\\r\n  && cd /tmp \\\r\n  && tar xvzf caddy.tar.gz \\\r\n  && mv /tmp/caddy /bin/caddy \\\r\n  && rm -rf /tmp/caddy.tar.gz\r\nVOLUME [ \"/srv\" ]\r\nWORKDIR /srv\r\nADD Caddyfile /Caddyfile\r\nEXPOSE 80 443 9180\r\nCMD [ \"/bin/caddy\", \"-http2=false\" ]\r\n```\r\nand the above Caddyfile, run:\r\n```\r\ndocker build -t my-caddy-image .\r\ndocker run -d -p 0.0.0.0:80:80 -p 0.0.0.0:443:443 my-caddy-image\r\n```"},"comment":{"url":"https://api.github.com/repos/mholt/caddy/issues/comments/252424906","html_url":"https://github.com/mholt/caddy/issues/1152#issuecomment-252424906","issue_url":"https://api.github.com/repos/mholt/caddy/issues/1152","id":252424906,"user":{"login":"dominikschulz","id":1449175,"avatar_url":"https://avatars.githubusercontent.com/u/1449175?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikschulz","html_url":"https://github.com/dominikschulz","followers_url":"https://api.github.com/users/dominikschulz/followers","following_url":"https://api.github.com/users/dominikschulz/following{/other_user}","gists_url":"https://api.github.com/users/dominikschulz/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikschulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikschulz/subscriptions","organizations_url":"https://api.github.com/users/dominikschulz/orgs","repos_url":"https://api.github.com/users/dominikschulz/repos","events_url":"https://api.github.com/users/dominikschulz/events{/privacy}","received_events_url":"https://api.github.com/users/dominikschulz/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T13:36:15Z","updated_at":"2016-10-08T13:36:15Z","body":"I'll double check the upstream (GitLab in our case). I was guessing at Caddy because it works flawlessly with any previous version of Caddy."}}
{"actor":{"display_login":"dominikschulz"}}