nginx

$http_host vs $host vs $server_name in nginx

nginx에서 rewrite를 작성할때 아래처럼 여러 변수를 활용할 수 있다. $http_host HTTP Request 의 Host 헤더값 $host * Host 헤더가 없다면, server_name * Host 헤더를 사용하되, 포트값은 제외하고 모두 소문자로 표시 $server_name 해당

mup with centos

meteor-up [https://github.com/arunoda/meteor-up] 이 centos와 궁합이 정말 안 맞았다 ㅠㅜ ubuntu에서는 특별한 문제가 없었는데... 어쨌든 엄청난 삽질을 하고 나서 모든 문제의 해결책을 찾아서 공유한다. centos7 은 아직 방법을 못찾았다. upstart를

SSL with nignx

https://www.namecheap.com 에서 도메인을 구입하고 SSL도 함께 구입했다. 가장 저렴한 single ssl을 적용해보자. 적용할 도메인 : mydomain.com generate CSR openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.