Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Accepted Answer
Hi there @akshaykoshti401,
I would recommend starting with checking your Nginx error log:
- sudo tail -100 /var/log/nginx/error.log
It is possible that the Nginx user does not have read permissions for the /var/www/mysite/staticfiles folder and the files inside.
I could suggest changing the ownership of that folder and the files inside it to the Nginx user.
You can do that with the following command:
- chown -R www-data: /var/www/mysite/staticfiles
Note that you might have to change the www-data with your actual Nginx user in case that you changed it.
Regards, Bobby
If it doesn’t work for ‘www-data’ user, try changing permission to ‘django’ user instead.
sudo chown -R your_username:your_group /var/www/mysite2/media/