LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   create page of directory tree (https://www.linuxquestions.org/questions/linux-server-73/create-page-of-directory-tree-588432/)

AAnarchYY 09-30-2007 01:03 PM

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:

http://www.kernel.org/pub/linux/
or
http://ftp.debian.org

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.

pwc101 09-30-2007 01:44 PM

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.

AAnarchYY 09-30-2007 01:48 PM

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 :-/

{BBI}Nexus{BBI} 09-30-2007 01:50 PM

If you give for example an ftp address in the form a url, the display is automatically formatted as a tree.

raskin 09-30-2007 01:54 PM

Option +Indexes
in .htaccess in the root of the tree or in the Directory tag in httpd.conf

osor 10-01-2007 04:26 PM

Quote:

Originally Posted by raskin (Post 2908523)
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).


All times are GMT -5. The time now is 02:07 PM.