LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2007, 01:03 PM   #1
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Slackware 10.2 Fluxbox 2.6.17.6
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:

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.
 
Old 09-30-2007, 01:44 PM   #2
pwc101
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, 01:48 PM   #3
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Slackware 10.2 Fluxbox 2.6.17.6
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 01:51 PM.
 
Old 09-30-2007, 01:50 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
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, 01:54 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

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, 04:26 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
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).
 
  


Reply

Tags
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 10:18 PM
Unable to create a tar file from spanning a directory tree? R00ts Linux - General 2 11-01-2006 10:15 AM
too long directory tree slack66 Slackware 2 07-15-2006 11:08 PM
permissions for directory tree adamwenner Linux - Security 3 10-23-2004 07:39 AM
Help! How do you delete a directory tree? johnmcollier Linux - Security 0 10-24-2003 02:29 AM


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

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