Welcome! Log In Create A New Profile

Advanced

How I easily serve all files from a directory ?

Audrey Lee
September 28, 2010 06:46PM
Hello nginx people,

is it easy to configure nginx so that it will serve html for a directory?
I want the html to list all files in that directory.

My directory would be like this:

nginx/html/mydir/

And I would fill it with files like:
my.html
our.txt
your.jpg
their.pdf

So if I browse http://audreyis.me/mydir/

I would see links to those files.

I think apache has this feature but I dont want to use apache.

Here is an example of what I am looking for:

http://howto.unixdev.net/dirlist.html

thanks!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How I easily serve all files from a directory ?

Audrey Lee September 28, 2010 06:46PM

Re: How I easily serve all files from a directory ?

Audrey Lee September 28, 2010 06:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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