Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 진1926
- 전나라동동공주
- NapuCon2016
- react component
- DockerCompose
- Hook
- nginx
- 강다니엘
- Java
- 바스트로37
- useEffect
- SpockFramework
- SpringCamp2017
- NVM
- 오뚜기숯불소금구이
- 판교
- 신미낙지
- 오삼철판볶음
- SpringCamp2019
- react
- Spring
- Replacation
- docker
- MariaDB
- 고릴라볼링장
- SetMail
- 양살치살
- SpringCamp
- State
- BDD
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