I am getting loading page after hosting django app on ubuntu 20.04 i got this error Gateway Timeout The gateway did not receive a timely response from the upstream server or application.
Apache/2.4.41 (Ubuntu) Server at 206.189.140.138 Port 80
if you want the commond sequence then i can show you
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi there @akshaykoshti401,
I would recommend following the steps from this tutorial here on how to deploy Django on Ubuntu 20.04:
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04
It shows how to do this with Nginx rather than Apache.
If you prefer apache, I would recommend this tutorial here instead:
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04
Hope that this helps! Regards, Bobby