Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Google-fu has failed me on this one. Every time I search for something like this all I get is a bunch of vulnerability reports. I feel like this should be pretty straightforward, but I'm not having any luck.

I have an internal web/fileserver whose functionality I'd like to integrate. Currently, there is a large data partition with a bunch of files (git repo) only accessible via SSH, and a separate web server (Apache2 on Debian). Note that the majority of files have whitespace in their path. (Bulk-renamed this away.)

Is there a minimal (no database or frills) CGI script or something that will dynamically load a directory listing and make links to the files, and maybe some basic search, too? A tie-in to find/locate via bash would be about the right amount of functionality.


share|improve this question
Any reason you don't want to use Apache's mod_autoindex? It does just what you describe (minus the search) by exposing files in directories. Or are you looking for something more than basic directory listing? – Nick Jun 7 '11 at 7:33
For one, I didn't know about it. For two, I am looking for a bit more functionality, or at least the possibility of adding it myself. – chaosys Jun 7 '11 at 13:55
Does it have to be a CGI script, or are you open to others (e.g. PHP/Python etc.)? – Nick Jun 7 '11 at 14:03
I'm open to pretty much anything. Doesn't have to be CGI. – chaosys Jun 7 '11 at 16:44
up vote 2 down vote accepted

Filenice is a PHP directory browser with search functionality.

share|improve this answer
Very nice. Looks like exactly what I'm looking for. I'll give this a try. – chaosys Jun 7 '11 at 22:00
This has a few caveats: doesn't handle whitespace or "&" in the path, only does substring search. Otherwise, this looks pretty cool. – chaosys Jun 8 '11 at 4:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.