{"action":"opened","issue":{"url":"https://api.github.com/repos/mholt/caddy/issues/373","labels_url":"https://api.github.com/repos/mholt/caddy/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/mholt/caddy/issues/373/comments","events_url":"https://api.github.com/repos/mholt/caddy/issues/373/events","html_url":"https://github.com/mholt/caddy/issues/373","id":119419936,"number":373,"title":"Redirecting on subdomain and port issue","user":{"login":"mjio","id":20990,"avatar_url":"https://avatars.githubusercontent.com/u/20990?v=3","gravatar_id":"","url":"https://api.github.com/users/mjio","html_url":"https://github.com/mjio","followers_url":"https://api.github.com/users/mjio/followers","following_url":"https://api.github.com/users/mjio/following{/other_user}","gists_url":"https://api.github.com/users/mjio/gists{/gist_id}","starred_url":"https://api.github.com/users/mjio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjio/subscriptions","organizations_url":"https://api.github.com/users/mjio/orgs","repos_url":"https://api.github.com/users/mjio/repos","events_url":"https://api.github.com/users/mjio/events{/privacy}","received_events_url":"https://api.github.com/users/mjio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T05:15:40Z","updated_at":"2015-11-30T05:15:40Z","closed_at":null,"body":"Hi, I'm currently setting up a Caddy server and would like to only use `https://www.example.com`. When a request comes in from port 80 or non-www, I would like to redirect. My current Caddyfile looks like this:\r\n\r\n```\r\nhttps://www.example.com {\r\n  tls cert.pem cert.key\r\n}\r\n\r\nhttps://example.com, http://www.example.com, http://example.com {\r\n  redir https://www.example.com\r\n}\r\n```\r\n\r\nHowever, I'm getting the following error: `2015/11/29 23:20:20 listen tcp 0.0.0.0:443: bind: address already in use`"}}