| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- SpringCamp
- NapuCon2016
- useEffect
- SpringCamp2017
- 강다니엘
- Java
- BDD
- nginx
- Hook
- 신미낙지
- react
- SpringCamp2019
- NVM
- 오뚜기숯불소금구이
- Spring
- DockerCompose
- 오삼철판볶음
- Replacation
- 전나라동동공주
- 진1926
- react component
- docker
- State
- SetMail
- 고릴라볼링장
- 판교
- MariaDB
- 양살치살
- SpockFramework
- 바스트로37
Archives
- Today
- Total
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- SpringCamp
- NapuCon2016
- useEffect
- SpringCamp2017
- 강다니엘
- Java
- BDD
- nginx
- Hook
- 신미낙지
- react
- SpringCamp2019
- NVM
- 오뚜기숯불소금구이
- Spring
- DockerCompose
- 오삼철판볶음
- Replacation
- 전나라동동공주
- 진1926
- react component
- docker
- State
- SetMail
- 고릴라볼링장
- 판교
- MariaDB
- 양살치살
- SpockFramework
- 바스트로37
Archives
- Today
- Total
Note
Nginx Proxy 설정 본문
/etc/nginx/의 하위 디렉토리인 conf.d로 들어가서 xxxx.conf 파일 생성
해당 파일에 아래와 같은 정보 입력
server {
listen 80;
server_name your.domain.com;
access_log /var/log/admin/access.log;
error_log /var/log/admin/error.log;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://127.0.0.1:8080;
}
}
저장 후 nginx 재시작
service nginx restart
기본 nginx설정이라면 conf.d 에 있는 파일을 모두 불러와서 로딩시켜주므로 별도의 설정은 필요 없음
'Dev > Etc' 카테고리의 다른 글
| Docker Iptables 오류 (0) | 2019.11.24 |
|---|---|
| Docker Container (0) | 2019.11.24 |
| Docker 기본 사용법 (0) | 2019.11.24 |
| MariaDB Replication(복제) 설정 (0) | 2019.11.24 |
| MariaDB Automatically Daily Dump(매일 백업하기) (0) | 2019.11.24 |
Comments