{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/4084","repository_url":"https://api.github.com/repos/yiisoft/yii","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/4084/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/4084/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/4084/events","html_url":"https://github.com/yiisoft/yii/issues/4084","id":173855583,"number":4084,"title":"How to point multiple domains (or subdomains) to a single module","user":{"login":"georaldc","id":286812,"avatar_url":"https://avatars.githubusercontent.com/u/286812?v=3","gravatar_id":"","url":"https://api.github.com/users/georaldc","html_url":"https://github.com/georaldc","followers_url":"https://api.github.com/users/georaldc/followers","following_url":"https://api.github.com/users/georaldc/following{/other_user}","gists_url":"https://api.github.com/users/georaldc/gists{/gist_id}","starred_url":"https://api.github.com/users/georaldc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georaldc/subscriptions","organizations_url":"https://api.github.com/users/georaldc/orgs","repos_url":"https://api.github.com/users/georaldc/repos","events_url":"https://api.github.com/users/georaldc/events{/privacy}","received_events_url":"https://api.github.com/users/georaldc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T19:44:18Z","updated_at":"2016-08-29T21:30:46Z","closed_at":"2016-08-29T21:30:46Z","body":"How does one achieve this where you could have multiple domains pointing to the same module? For example\r\n\r\nhttp://domain1.com -> points to myCustomModule\r\nhttp://domain2.com -> points to myCustomModule\r\n\r\nI am able to easily map a single domain by prepending the following rules to the UrlManager component config\r\n\r\n```\r\n'http://domain1.com/<controller:\\w+>/<id:\\d+>' => 'myCustomModule/<controller>/view'\r\n'http://domain1.com/<controller:\\w+>/<action:\\w+>/<id:\\d+>' => 'myCustomModule/<controller>/<action>'\r\n'http://domain1.com/<controller:\\w+>/<action:\\w+>' => 'myCustomModule/<controller>/<action>'\r\n```\r\n\r\nbut adding any more domain rules afterwards won't work because the initial 3 ```domain1.com``` rules would satisfy those requests and create links pointing to domain1.com instead.\r\n\r\nSorry if this is more of an implementation question but replies in the official forum seem to come rarely. "},"comment":{"url":"https://api.github.com/repos/yiisoft/yii/issues/comments/243262894","html_url":"https://github.com/yiisoft/yii/issues/4084#issuecomment-243262894","issue_url":"https://api.github.com/repos/yiisoft/yii/issues/4084","id":243262894,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T21:30:46Z","updated_at":"2016-08-29T21:30:46Z","body":"Please use forum for questions: http://www.yiiframework.com/forum/\r\n\r\nGitHub is an issue tracker."}}
{"actor":{"display_login":"samdark"}}