Programing Language/Python

Flask) 서버 재설정(기존 설치 이후 도메인 바뀌었을때)

Jude_Song 2021. 3. 18. 14:08
728x90
반응형

www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04

 

How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu | DigitalOcean

In this guide, you will build a Python application using the Flask microframework on Ubuntu 18.04. The bulk of this article will be about how to set up the Gunicorn application server and how to launch the application and configure Nginx to act as a f

www.digitalocean.com

참고 자료에서

Step 5 — Configuring Nginx to Proxy Requests

을 참고하여 바뀐 도메인을 수정해준다.

이후

  • sudo ln -s /etc/nginx/sites-available/myproject /etc/nginx/sites-enabled 

명령어는 사용할 필요없이 nginx를 재시작하고 다시 바뀐 도메인으로 접속하면 올바르게 접속된다.

728x90
반응형