AWS Instance EC2 - Ubuntu stops after sometime [closed]

i am new to AWS. I had my Python Django project setup to host on AWS using EC2 INSTANCE WITH UBUNTU. It works when i run the project. After a while, may be 5 minutes later, when the site or console is not in use, the site seems to be unreachable. It show 502 Bad Gateway nginx/1.24.0 (Ubuntu) .

How can i solve this issue? I want my site to be reachable once all time once when i run the project.

Вернуться на верх