ghost:install
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
ghost:install [2015/03/23 04:42] – 만듦 changwoo | ghost:install [2015/03/23 05:06] (현재) – [proxy 모듈로 아파치에서 연결] changwoo | ||
---|---|---|---|
줄 67: | 줄 67: | ||
}, | }, | ||
server: { | server: { | ||
- | host: '0.0.0.0', | + | host: '127.0.0.1', |
port: ' | port: ' | ||
}, | }, | ||
줄 74: | 줄 74: | ||
</ | </ | ||
+ | 서버로는 기본인 sqlite에서 mysql로 변경했습니다. socket 설정 등등을 맞춰 줍니다. server의 host는 '' | ||
+ | |||
+ | < | ||
+ | |||
+ | 위 명렁으로 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.1427085725.txt.gz · 마지막으로 수정됨: 2015/03/23 04:42 저자 changwoo