Help- can't see subdirectories for static content location
equalium
equalium at gmail.com
Fri Mar 27 12:01:57 MSK 2009
Hello, I'm setting up nginx to serve a django site. The django part goes OK but
I have a problem with my media directory. I'm using this:
location /media/ {
root /home/django/domains/myapp/static/;
}
...
The problem is that I can access that directory and any html file directly
inside but not other directories or images.
For example, my directories are like this:
./domains
...myapp
......static
.........CSS
.........images
.........js
.........hello.html
.........image.png
I have the option "autoindex on;", so when I access: http://mydomain/media/ I see:
Index of /media/
../
hello.html
Does anybody know what can be wrong?
Thanks for any suggestion.
More information about the nginx
mailing list