{"action":"created","issue":{"url":"https://api.github.com/repos/yona-projects/yona/issues/229","repository_url":"https://api.github.com/repos/yona-projects/yona","labels_url":"https://api.github.com/repos/yona-projects/yona/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/yona-projects/yona/issues/229/comments","events_url":"https://api.github.com/repos/yona-projects/yona/issues/229/events","html_url":"https://github.com/yona-projects/yona/issues/229","id":235428627,"number":229,"title":"기존 80포트 웹서비스와 요나의 공존 가능 여부","user":{"login":"JeongJun-Lee","id":11474775,"avatar_url":"https://avatars3.githubusercontent.com/u/11474775?v=3","gravatar_id":"","url":"https://api.github.com/users/JeongJun-Lee","html_url":"https://github.com/JeongJun-Lee","followers_url":"https://api.github.com/users/JeongJun-Lee/followers","following_url":"https://api.github.com/users/JeongJun-Lee/following{/other_user}","gists_url":"https://api.github.com/users/JeongJun-Lee/gists{/gist_id}","starred_url":"https://api.github.com/users/JeongJun-Lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeongJun-Lee/subscriptions","organizations_url":"https://api.github.com/users/JeongJun-Lee/orgs","repos_url":"https://api.github.com/users/JeongJun-Lee/repos","events_url":"https://api.github.com/users/JeongJun-Lee/events{/privacy}","received_events_url":"https://api.github.com/users/JeongJun-Lee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-13T03:54:05Z","updated_at":"2017-06-13T04:53:38Z","closed_at":null,"body":"안녕하세요? 설치 문의 드립니다.\r\n\r\n요나를 디폴트 9000 포트가 아닌 80 포트에서 사용하고 싶은데요. 문제는 기존에 아파치 웹서버 80포트에서 홈페이지를 서비스 중에 있습니다. 80 포트를 홈페이지용 웹서비스와 요나를 겸해서 쓸 수 있는지요? 그리고, 요나의 경우 yona.abc.com 처럼 서브 도메인으로 독립 도메인을 할당하려고 합니다. 제 생각엔 동일 포트로 요나를 실행시키는게 가능하지는 않을 것 같은데 그렇다면 아파치에서 포트 포워딩 하듯이 트래픽을 서브 도메인에 따라 다른 포트로 넘겨줘야 할 것 같은데요. 어떻게 설정을 잡아야 할까요? 경험 있으신 분 있으신가요?\r\n\r\n감사합니다."},"comment":{"url":"https://api.github.com/repos/yona-projects/yona/issues/comments/308006396","html_url":"https://github.com/yona-projects/yona/issues/229#issuecomment-308006396","issue_url":"https://api.github.com/repos/yona-projects/yona/issues/229","id":308006396,"user":{"login":"sjstyle","id":4811664,"avatar_url":"https://avatars0.githubusercontent.com/u/4811664?v=3","gravatar_id":"","url":"https://api.github.com/users/sjstyle","html_url":"https://github.com/sjstyle","followers_url":"https://api.github.com/users/sjstyle/followers","following_url":"https://api.github.com/users/sjstyle/following{/other_user}","gists_url":"https://api.github.com/users/sjstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/sjstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjstyle/subscriptions","organizations_url":"https://api.github.com/users/sjstyle/orgs","repos_url":"https://api.github.com/users/sjstyle/repos","events_url":"https://api.github.com/users/sjstyle/events{/privacy}","received_events_url":"https://api.github.com/users/sjstyle/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T04:53:38Z","updated_at":"2017-06-13T04:53:38Z","body":"안녕하세요.\r\n요나를 9000번 포트에 띄워두고, Apache httpd.conf 파일 수정을 통해 특정 도메인으로 들어올때는 yona로 reverse-proxy 하는 방법이 좋을 것 같습니다.\r\n\r\nex) 도메인이 `example.com`일 경우\r\n\r\n```\r\nwww.example.com -> apache -> static page / dynamic web app (php, jsp, html ....)\r\nyona.example.com -> apache -> yona\r\n```\r\n\r\n`httpd.conf` 를 다음을 참고해서 수정해보시겠어요?\r\n\r\n```\r\nNameVirtualHost *:80\r\n\r\n<VirtualHost *:80>\r\n    DocumentRoot /var/www/root  # 여기에 기존 파일 위치\r\n    ServerName www.example.com \r\n</VirtualHost>\r\n\r\n<VirtualHost *:80>\r\n    ServerName yona.example.com\r\n    ProxyPreserveHost on\r\n    ProxyPass / http://localhost:9000/ nocanon\r\n    ProxyPassReverse / http://localhost:9000/\r\n    ProxyTimeout 3600\r\n</VirtualHost>\r\n```\r\n\r\n참고하실만한 문서\r\n\r\n* apache virtualhost : https://httpd.apache.org/docs/2.4/ko/vhosts/examples.html\r\n* apache reverse proxy: https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html"}}
{"actor":{"display_login":"sjstyle"}}