{"action":"created","issue":{"url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/543","repository_url":"https://api.github.com/repos/owen2345/camaleon-cms","labels_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/543/comments","events_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/543/events","html_url":"https://github.com/owen2345/camaleon-cms/issues/543","id":190877174,"number":543,"title":"Multi Site: How to map a custom domain to a Camaleon-app-subdomain on Heroku ","user":{"login":"mayinx","id":126368,"avatar_url":"https://avatars.githubusercontent.com/u/126368?v=3","gravatar_id":"","url":"https://api.github.com/users/mayinx","html_url":"https://github.com/mayinx","followers_url":"https://api.github.com/users/mayinx/followers","following_url":"https://api.github.com/users/mayinx/following{/other_user}","gists_url":"https://api.github.com/users/mayinx/gists{/gist_id}","starred_url":"https://api.github.com/users/mayinx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayinx/subscriptions","organizations_url":"https://api.github.com/users/mayinx/orgs","repos_url":"https://api.github.com/users/mayinx/repos","events_url":"https://api.github.com/users/mayinx/events{/privacy}","received_events_url":"https://api.github.com/users/mayinx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-11-22T00:41:08Z","updated_at":"2016-12-01T15:02:39Z","closed_at":null,"body":"Hi there!\r\n\r\nI've setup a multi-site solution with Camaleon CMS on Heroku (1 main-/default-site like `www.mydomain.de`+ n further sites accessible via subdomains/keys like `fu.mydomain.de`, `bar.mydomain.de` etc...  )\r\n\r\nFor this to work I defined (via DNSimple)  `mydomain.de` as an ALIAS for `myapp.herokuapp.com` and enabled wildcard subdomains for `mydomain.de` by defining a CNAME record which sets `*.mydomain.de`  as alias for `myapp.herokuapp.com`  and by adding  ` *.mydomain.de ` as domain name to my Heroku-app (via `heroku domains:add *.mydomain.de`). To round it up I defined another CNAME record to set `www.mydomain.de` as another alias for `myapp.herokuapp.com` & added `www.mydomain.de` as well to my Heroku app (`heroku domains:add mydomain.de` ). \r\n\r\nHere's the DNS-setup (DNS Records on DNSimple for `mydomain.de`):\r\n\r\nType | Name | Content\r\n------------ | ------------- | ------------- \r\n`ALIAS` | `mydomain.de` | `myapp.herokuapp.com`\t \r\n`CNAME` | `*.mydomain.de` | `myapp.herokuapp.com`\t\t  \r\n`CNAME` | `www.mydomain.de` | `myapp.herokuapp.com`\r\n`TXT` | `mydomain.de` | `ALIAS for myapp.herokuapp.com`\r\n`NS`\t| `mydomain.de` | `ns4.dnsimple.com`\t\t\r\n`NS`\t| `mydomain.de` | `ns2.dnsimple.com`\t\t\r\n`NS`\t| `mydomain.de` | `ns1.dnsimple.com`\t\t\r\n`NS`\t| `mydomain.de` | `ns3.dnsimple.com`\r\n\r\nAnd here are the custom domains I added on Heroku for `myapp.herokuapp.com`:\r\n\r\nDomain Name | DNS Target\r\n------------ | -------------\r\n`*.mydomain.de` | `myapp.herokuapp.com`\r\n`mydomain.de` | `myapp.herokuapp.com`\r\n`www.mydomain.de` | `myapp.herokuapp.com`\r\n\r\nThat works great so far....\r\n\r\n## TL;DR? ;-)\r\n\r\nNow Id'like to map external domains to those subdomains - to allow clients to use their own domains instead of the subdomains of the Camaleon-app - i.e. `www.fusdomain.de ` shall be mapped to  `fu.mydomain.de` and `www.barsdomain.de` shall be mapped to `bar.mydomain.de` and so forth ...\r\n\r\nWhat is the best way to achieve this? (for testing purposes I tried to map one of my domains to a subdomain (`CNAME  www.testdomain.de  -> somesubdomain.mydomain.de`) and added it to heroku (`heroku domains:add www.testdomain.de`) - but that didn't work, `www.test.de` simply resolved to the main/default-site  `www.mydomain.de` instead of the desired subdomain...)\r\n\r\nCheers\r\nMayinx"},"comment":{"url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/comments/264195663","html_url":"https://github.com/owen2345/camaleon-cms/issues/543#issuecomment-264195663","issue_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/543","id":264195663,"user":{"login":"mazharoddin","id":6102465,"avatar_url":"https://avatars.githubusercontent.com/u/6102465?v=3","gravatar_id":"","url":"https://api.github.com/users/mazharoddin","html_url":"https://github.com/mazharoddin","followers_url":"https://api.github.com/users/mazharoddin/followers","following_url":"https://api.github.com/users/mazharoddin/following{/other_user}","gists_url":"https://api.github.com/users/mazharoddin/gists{/gist_id}","starred_url":"https://api.github.com/users/mazharoddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mazharoddin/subscriptions","organizations_url":"https://api.github.com/users/mazharoddin/orgs","repos_url":"https://api.github.com/users/mazharoddin/repos","events_url":"https://api.github.com/users/mazharoddin/events{/privacy}","received_events_url":"https://api.github.com/users/mazharoddin/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T15:02:39Z","updated_at":"2016-12-01T15:02:39Z","body":"@mayinx  Its nice to know that its working for you, thanks for your sample code and details ..really appreciate it...I will re-try again and let you know."}}
{"actor":{"display_login":"mazharoddin"}}