Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 안드로이드
- caddy
- 해석
- MySQL
- php
- 개발자
- ubuntu
- 컴퓨터과학총론
- it
- unity
- C lanuage
- error
- 번역
- kakao
- Portfolio
- techEmpower
- centOS7
- 자바
- 프래그먼트
- NGINX
- 구글
- 개발
- android
- javascript
- mariadb
- java
- 한글
- server
- H2O
- C
Archives
- Today
- Total
개발모음집
nginx multiple domain 본문
sudo vim /etc/nginx/nginx.conf
server {
listen 80;
server_name startuplife.kr;
access_log /var/log/nginx/access_life.log;
error_log /var/log/nginx/error_life.log;
location / {
proxy_pass http://49.247.137.175;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name startupcode.kr;
access_log /var/log/nginx/access_code.log;
error_log /var/log/nginx/error_code.log;
location / {
proxy_pass https://49.247.136.184;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name startuphub.kr;
access_log /var/log/nginx/access_hub.log;
error_log /var/log/nginx/error_hub.log;
location / {
proxy_pass http://49.247.137.225;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
'Server' 카테고리의 다른 글
pm2 logrotate 에 대해서 (0) | 2021.02.18 |
---|---|
Docker로 nginx, netty 설치 (0) | 2020.11.10 |
Solution for NodeJS MYSQL query result buffer (0) | 2020.03.13 |
리눅스 스왑메모리 추가하는 방법 (0) | 2020.03.11 |
postman api를 web으로 출시하기 (0) | 2020.02.13 |