Welcome! Log In Create A New Profile

Advanced

Help- can't see subdirectories for static content location

equalium
March 27, 2009 05:01AM
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.
Subject Author Posted

Help- can't see subdirectories for static content location

equalium March 27, 2009 05:01AM

Re: Help- can't see subdirectories for static content location

Igor Sysoev March 27, 2009 05:11AM

Re: Help- can't see subdirectories for static content location

Carlos March 27, 2009 05:56AM

Re: Help- can't see subdirectories for static content location

Carlos March 27, 2009 07:07AM

Re: Help- can't see subdirectories for static content location

Jean-Philippe Moal March 27, 2009 08:36AM

Re: Help- can't see subdirectories for static content location

Carlos March 27, 2009 11:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready