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 |
Tags
- 이스케이프 문자
- Graph
- list 컬렉션
- 메모리구조
- C 언어 코딩 도장
- C programming
- insertion sort
- Stack
- JSON
- 혼자 공부하는 C언어
- buffer
- datastructure
- coding test
- R
- 윤성우 열혈자료구조
- Serialization
- Algorithm
- 알기쉬운 알고리즘
- 윤성우의 열혈 자료구조
- Selection Sorting
- stream
- s
- 이것이 자바다
Archives
- Today
- Total
Engineering Note
nginx 도메인 네임 설정 본문
도메인 네임 설정
sudo apt-get update
sudo apt-get install nginx
sudo vim /etc/nginx/conf.d/sample.conf
server {
listen 80;
server_name <도메인 네임>;
charset utf-8;
location / {
proxy_pass http://127.0.0.1:5000/;
proxy_set_header Host $http_host;
proxy_set_header X-Forwared-Host $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
sudo /etc/init.d/nginx restart
sample.conf에 server_name에 도메인 네임을 설정해주면 해당 도메인으로 접속하면 프록시 서버를 통해 http://127.0.0.1:5000 이 곳에 접속할 수 있게 된다.
'Server > Flask' 카테고리의 다른 글
의존성 관리 (0) | 2021.10.26 |
---|---|
flask-restful (0) | 2021.07.23 |
Flask 공식 튜토리얼 게시판 만들기 (0) | 2021.07.20 |
SQL Alchemy와 ORM (0) | 2021.07.18 |
JWT (0) | 2021.07.18 |
Comments