Welcome! Log In Create A New Profile

Advanced

How to get a list of files only in a specified sub directory

Posted by protake 
How to get a list of files only in a specified sub directory
August 06, 2012 01:05PM
Hello there!

I want to have specified sub directory where I can see all the files available. Normally a 403 Forbidden will appear.
Now I want it this way: For example like this: http://m44.img-up.net/Untitlede9ec.png (sorry for using Apache)
I already have this:

location ^~ /ddl/ {
#What here?!
}

Because I want this list of files in every sub directory that start's with /ddl/.
But what do I need to write within the brackets?

Thanks!
Re: How to get a list of files only in a specified sub directory
August 06, 2012 05:08PM
It's just

location ^~ /ddl/ {
autoindex on;
}

With the right keyword it's so easy to find!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
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