How to serve django media files via nginx ?
I'm new at Nginx, I've successfully bound my django project to Nginx. However I can't serve my static files and I guess I set my media folder's location wrongly. Here is my file tree: root_directory my_django_project ... manage.py app1 app2 media admin css js ... And my nginx.conf goes like : server { listen 192.168.1.9:80; server_name localhost; # site_media - folder in uri for static files location /media/ { root /home/nazmi/workspace/portal/media/; } location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov) { access_log off; # po