{"action":"closed","issue":{"url":"https://api.github.com/repos/largeden/multidomain/issues/2","labels_url":"https://api.github.com/repos/largeden/multidomain/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/largeden/multidomain/issues/2/comments","events_url":"https://api.github.com/repos/largeden/multidomain/issues/2/events","html_url":"https://github.com/largeden/multidomain/issues/2","id":54163697,"number":2,"title":"가상사이트 mid 인식문제에 관한 이슈","user":{"login":"XisoDev","id":10387955,"avatar_url":"https://avatars.githubusercontent.com/u/10387955?v=3","gravatar_id":"","url":"https://api.github.com/users/XisoDev","html_url":"https://github.com/XisoDev","followers_url":"https://api.github.com/users/XisoDev/followers","following_url":"https://api.github.com/users/XisoDev/following{/other_user}","gists_url":"https://api.github.com/users/XisoDev/gists{/gist_id}","starred_url":"https://api.github.com/users/XisoDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XisoDev/subscriptions","organizations_url":"https://api.github.com/users/XisoDev/orgs","repos_url":"https://api.github.com/users/XisoDev/repos","events_url":"https://api.github.com/users/XisoDev/events{/privacy}","received_events_url":"https://api.github.com/users/XisoDev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/largeden/multidomain/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-13T08:40:56Z","updated_at":"2015-01-14T11:09:01Z","closed_at":"2015-01-14T11:09:01Z","body":"github에쓰면 과연 보실까 해서 쪽지드렸었는데 ^^;\r\n\r\n일단 제가 간단하게 살펴본결과\r\n\r\n멀티도메인모듈에서 가상사이트의 mid를 저장하면 \r\n\r\ntriggerMultidomainInit 트리거 통과\r\n\r\n-> 가상사이트의 site_srl같은걸 안줌\r\n\r\n이때 모듈핸들러에서 module_info내부를 보면\r\n\r\nModuleHandler Object ( [module] => [act] => [mid] => home [document_srl] => 0 [module_srl] => 0 [module_info] => [error] => [httpStatusCode] => )\r\n\r\n그러니 \r\nif(Context::get('document_srl') || Context::get('mid') || Context::get('module') || Context::get('module_srl'))\r\n{\r\n\treturn;\r\n}\r\n를 통과하지못하니 triggerMultidomain 까지 진입을 못하죠.\r\n\r\n예를들어 \r\nmain.xiso.co.kr 이 메인사이트이고\r\ntest.xiso.co.kr/home 을 멀티도메인모듈을 통해 지정했을경우에,\r\n\r\nmain.xiso.co.kr/home 을 불러오려 한다는겁니다. 하지만 main.xiso.co.kr 에는 home이라는 mid가 없으니 제쪽에서는 404에러가 떴었네요.\r\n\r\nfunction triggerMultidomainInit(&$module_info)\r\n\t{\r\n\t\t$site_module_info->site_srl = 200;\r\n\t\tContext::set('site_module_info',$site_module_info);\r\n\r\n모듈초기화 before 트리거앞부분에 이런식으로 site_srl을 걸어주면 정상적으로 찾아가긴 하나\r\n\r\ngetUrl 함수에서 도메인을 전부 기존 cafeXE에 등록된 도메인을 찾아가기때메 SSO를 사용하지않는경우 로그인이풀리며 원래 도메인으로 돌아가버리는 문제가 또 발생합니다.\r\n\r\n나머지는 풀어서 해결해보시리라믿어용 ^^"}}