1👍
Try changing root
to alias
:
location /media/ {
alias /home/ubuntu/giver/server/giver/giver/media/;
}
then restart:
sudo service nginx restart
Hope it helps!
1👍
Looking here you see both syntax with “alias” or “root”:
location /media/ {
root /home/ubuntu/giver/server/giver/giver;
}
or
location /media/ {
alias /home/ubuntu/giver/server/giver/giver/media/;
}
Both are valid but the same doc also says that when the location path match the file system path end (“/media” in your case) root is the way to go.
- [Answered ]-Pie chart highcharts from django query
- [Answered ]-Empty Chatterbot Conversation table in Django Admin
- [Answered ]-Django css static not load
- [Answered ]-Django: Customizing ManyToManyField form options
Source:stackexchange.com