nginx에서 rewrite를 작성할때 아래처럼 여러 변수를 활용할 수 있다.
$http_host
HTTP Request 의 Host 헤더값
$host
* Host 헤더가 없다면, server_name
* Host 헤더를 사용하되, 포트값은 제외하고 모두 소문자로 표시
$server_name
해당
reference
https://docs.docker.com/registry/recipes/nginx/
docker private registry 구축은 위 내용을 보면 된다.
issue
nginx version
1.4.5에서는 add_header 파라미터가 두개 밖에 안들어감 always가 꼭 필요하기 때문에 1.
sudo -s
nginx=stable # use nginx=development for latest development version
add-apt-repository ppa:nginx/$nginx
apt-get update
apt-get install nginx
https://www.nginx.com/resources/wiki/start/topics/tutorials/install/
meteor-up [https://github.com/arunoda/meteor-up] 이 centos와 궁합이 정말 안 맞았다 ㅠㅜ
ubuntu에서는 특별한 문제가 없었는데...
어쨌든 엄청난 삽질을 하고 나서 모든 문제의 해결책을 찾아서 공유한다.
centos7 은 아직 방법을 못찾았다.
upstart를
https://www.namecheap.com 에서 도메인을 구입하고 SSL도 함께 구입했다.
가장 저렴한 single ssl을 적용해보자.
적용할 도메인 : mydomain.com
generate CSR
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.