{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3470","labels_url":"https://api.github.com/repos/deis/deis/issues/3470/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3470/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3470/events","html_url":"https://github.com/deis/deis/issues/3470","id":68176022,"number":3470,"title":"SSL is broken after upgrade to 1.5.1","user":{"login":"ineu","id":24980,"avatar_url":"https://avatars.githubusercontent.com/u/24980?v=3","gravatar_id":"","url":"https://api.github.com/users/ineu","html_url":"https://github.com/ineu","followers_url":"https://api.github.com/users/ineu/followers","following_url":"https://api.github.com/users/ineu/following{/other_user}","gists_url":"https://api.github.com/users/ineu/gists{/gist_id}","starred_url":"https://api.github.com/users/ineu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineu/subscriptions","organizations_url":"https://api.github.com/users/ineu/orgs","repos_url":"https://api.github.com/users/ineu/repos","events_url":"https://api.github.com/users/ineu/events{/privacy}","received_events_url":"https://api.github.com/users/ineu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T19:35:58Z","updated_at":"2015-04-14T18:54:12Z","closed_at":null,"body":"After upgrading deis from 1.4.1 to 1.5.1, which introduced application-level certificates (http://docs.deis.io/en/latest/using_deis/app-ssl/), my previous wildcard certificates (http://docs.deis.io/en/latest/managing_deis/ssl-endpoints/#router-ssl) no longer work. Deployed application work via http, but trying to access them via https always give 404. According to deis-router logs, it tries to route all https requests, whatever subdomain they are for, to deis-controller (in my case 192.168.0.1:8000), like:\r\n```\r\nApr 13 18:15:13 staging-coreos-2 sh[5425]: [INFO] - [13/Apr/2015:18:15:13 +0000] - 46.219.37.191 - - - 301 - \"HEAD / HTTP/1.1\" - 183 - \"-\" - \"curl/7.41.0\" - \"staging.example.com\" - 192.168.0.2:49159 - staging.example.com - 0.000 - 0.000\r\nApr 13 18:15:23 staging-coreos-2 sh[5425]: [INFO] - [13/Apr/2015:18:15:23 +0000] - 46.219.37.191 - - - 404 - \"HEAD / HTTP/1.1\" - 214 - \"-\" - \"curl/7.41.0\" - \"~^deis\\x5C.(?<domain>.+)$\" - 192.168.0.1:8000 - staging.example.com - 0.003 - 0.003\r\n```\r\nFirst request is http, seconds is https. Obviously `staging.example.com` doesn't match `^deis` wildcard, but this upstream is chosen, probably because it is first in nginx.conf."},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/93018530","html_url":"https://github.com/deis/deis/issues/3470#issuecomment-93018530","issue_url":"https://api.github.com/repos/deis/deis/issues/3470","id":93018530,"user":{"login":"Blystad","id":324506,"avatar_url":"https://avatars.githubusercontent.com/u/324506?v=3","gravatar_id":"","url":"https://api.github.com/users/Blystad","html_url":"https://github.com/Blystad","followers_url":"https://api.github.com/users/Blystad/followers","following_url":"https://api.github.com/users/Blystad/following{/other_user}","gists_url":"https://api.github.com/users/Blystad/gists{/gist_id}","starred_url":"https://api.github.com/users/Blystad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blystad/subscriptions","organizations_url":"https://api.github.com/users/Blystad/orgs","repos_url":"https://api.github.com/users/Blystad/repos","events_url":"https://api.github.com/users/Blystad/events{/privacy}","received_events_url":"https://api.github.com/users/Blystad/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T18:54:12Z","updated_at":"2015-04-14T18:54:12Z","body":"This is related to #3441 Application SSL does not support SAN certificates\r\n\r\nI suggest you just create a custom router for now.\r\n\r\nJust replace these lines: [router/image/templates/nginx.conf#L158-L169](https://github.com/deis/deis/blob/fa48fd21e9aed44f7c50c43211b96dfa4c28f21e/router/image/templates/nginx.conf#L158-L169) with ` include deis.conf;` and you should be good to go. That's what I did."}}