Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-30-2007, 02:03 PM   #1
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
create page of directory tree

I'm trying to create a webpage of a directory tree.
An example of what I'm trying to do is something like:

Do I need some special script/program to create pages like this?

Oh, and I'm using apache, don't know if there are any plugins or
included scripts to automagicly create pages like those.
Old 09-30-2007, 02:44 PM   #2
Senior Member
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
It's been a while since I did any web authoring, but I seem to remember that if you just upload files to a server without an index.htm(l) file in the directory, the client's browser just displays the directory contents as in those sites you linked to.
Old 09-30-2007, 02:48 PM   #3
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Original Poster
Rep: Reputation: 30
ya know... i actually DID try that at first and it didnt do anything... but this time it did.
thanks for making me try it again pwc101 and helping me look dumb :-/

Last edited by AAnarchYY; 09-30-2007 at 02:51 PM.
Old 09-30-2007, 02:50 PM   #4
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 210Reputation: 210Reputation: 210
If you give for example an ftp address in the form a url, the display is automatically formatted as a tree.
Old 09-30-2007, 02:54 PM   #5
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
Option +Indexes
in .htaccess in the root of the tree or in the Directory tag in httpd.conf
Old 10-01-2007, 05:26 PM   #6
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
Originally Posted by raskin View Post
Option +Indexes
in .htaccess in the root of the tree or in the Directory tag in httpd.conf
And for this you have to have at least mod_dir builtin (if you want to get fancy, use mod_autoindex).


apache, dir, http, tree

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 11:18 PM
Unable to create a tar file from spanning a directory tree? R00ts Linux - General 2 11-01-2006 11:15 AM
too long directory tree slack66 Slackware 2 07-16-2006 12:08 AM
permissions for directory tree adamwenner Linux - Security 3 10-23-2004 08:39 AM
Help! How do you delete a directory tree? johnmcollier Linux - Security 0 10-24-2003 03:29 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration