ghost:install
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| ghost:install [2015/03/23 04:48] – [설정 파일] changwoo | ghost:install [2015/03/23 05:06] (현재) – [proxy 모듈로 아파치에서 연결] changwoo | ||
|---|---|---|---|
| 줄 79: | 줄 79: | ||
| 위 명렁으로 ghost가 동작할 때, | 위 명렁으로 ghost가 동작할 때, | ||
| - | + | | |
| - | | + | * 접속이 된다면 |
| - | * '' | + | |
| ===== supervisor를 사용한 자동 시작 ===== | ===== supervisor를 사용한 자동 시작 ===== | ||
| + | 아무래도 서버가 실행될 때 ghost도 자동으로 실행되는 것이 바람직합니다. '' | ||
| + | < | ||
| + | # sudo apt-get install supervisor | ||
| + | # service supervisor start | ||
| + | # vi / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [program: | ||
| + | command = node / | ||
| + | directory = / | ||
| + | user = ghost | ||
| + | autostart = true | ||
| + | autorestart = true | ||
| + | stdout_logfile = / | ||
| + | stderr_logfile = / | ||
| + | environment = NODE_ENV=" | ||
| + | </ | ||
| + | |||
| + | '' | ||
| ===== proxy 모듈로 아파치에서 연결 ===== | ===== proxy 모듈로 아파치에서 연결 ===== | ||
| + | < | ||
| + | # apt-get install libapache2-mod-proxy-html libxml2-dev | ||
| + | # a2enmod proxy | ||
| + | # a2enmod proxy_balancer | ||
| + | # a2enmod proxy_http | ||
| + | # a2enmod proxy_html | ||
| + | # a2enmod xml2enc | ||
| + | # a2enmod deflate | ||
| + | # a2enmod headers | ||
| + | # a2enmod proxy_connect | ||
| + | # a2enmod proxy_ajp | ||
| + | </ | ||
| + | |||
| + | 아파치 가상호스트 설정 | ||
| + | < | ||
| + | < | ||
| + | ProxyPreserveHost On | ||
| + | ProxyPass / http:// | ||
| + | ProxyPassReverse / http:// | ||
| + | ServerName ghost.changwoo.pe.kr | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 혹시 작동되지 않는다면 도메인과 포트를 다시 한 번 잘 체크하여 봅니다. 기본 포트는 2368이지만 이 예에서는 2370으로 변경했음을 주지하세요. | ||
| ===== 출처 및 참고 사이트 ===== | ===== 출처 및 참고 사이트 ===== | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
ghost/install.1427086111.txt.gz · 마지막으로 수정됨: 2015/03/23 04:48 저자 changwoo
