I\'m using apache+mod_wsgi for django. And all css/js/images are served through nginx. For some odd reason, when others/friends/colleagues try accessing
nginx
I think using root in location block is incorrect. I use alias and it works fine, even without re-configuring django.
root
alias
# django settings.py MEDIA_URL = '/static/' # nginx server config server { ... location /static { autoindex on; alias /opt/aa/webroot/; } }
Hope this makes things simpler.