LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2002, 03:29 PM   #1
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Rep: Reputation: 15
Apache Index Files


Does anyone know how to change apache to allow directories to be browesable?

In an ideal situation I would allow browseing in /home/*/public_html/*
and not in the root.


I am using Mandrake 8.2 RC1 if that helps any. I tried netconf stuff but that messed up telnet and ftp login times. (There is another post about that somewhere around here)


MIKE
 
Old 03-18-2002, 09:57 AM   #2
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
Go to apache.org.

There is a directive called Indexes that makes the files available for download. Also look into alias directive.

Alais allows you to show /home/public/docs as /docs



<Directory /home/public/docs
Options Indexes
</Directory>
 
Old 03-19-2002, 10:57 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If you allow users to login then they should be able to browse anywhere they normally do unless you use chroot or DocumentRoot for a virtualuser.

If DocumentRoot is /home then they could browse in anything under /home

It's not really a great idea to do this, you should definately be using https SSL before sending any passwords or anything.

Theres a lot of info in the manual if you installed the apache-manual rpm

If you make DocumentRoot /var/www/html or whatever the default is then you need to set another Virtualuser with the other DocumentRoot

Last edited by DavidPhillips; 03-19-2002 at 11:09 AM.
 
Old 03-19-2002, 12:48 PM   #4
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Original Poster
Rep: Reputation: 15
This is confusing me. I have been reading all over and it seems like there are many options to do things I don't really need to do. I just want to have directory listing if no index.* is present.

Like the page that says

Index of /

folder
files


----
Served out by Apache 1.3.12 from 68.51.114.106

something like that.
I would have thought there was just a switch in the conf file,
but I can't find it.

Maybe I am trying too hard.
 
Old 03-19-2002, 08:33 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that should be the default behavior if no index file is present, thats what mine does.
 
Old 03-19-2002, 09:04 PM   #6
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Original Poster
Rep: Reputation: 15
Y ou'd like to think so, but mine apparently doesn't in RPM mode. In source install it did, but I wanted the RPM this time around on this install.
 
Old 03-20-2002, 06:52 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
make sure this is ok...

LoadModule dir_module modules/mod_dir.so


make sure you have this..


AddModule mod_dir.c


and if you have this...

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.p
hp3 index.phtml index.cgi
</IfModule>


try it like this

#<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.p
hp3 index.phtml index.cgi
#</IfModule>
 
Old 03-20-2002, 11:16 PM   #8
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Original Poster
Rep: Reputation: 15
Hi, I appreciate the help I have been getting, but still nothing is working. This is horrible. I thought there was some sort of allow indexing switch or something, but I didn't get that to work either. Apache ticks me off sometimes. But thanks everyone.
:smash:
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Default Index Cool_Hand_Luke Linux - Newbie 7 03-25-2005 11:16 AM
Apache segmentation fault with with default index files paijm021 Linux - Software 13 04-22-2004 08:51 AM
Apache won't default to index.html TexasDex Linux - Software 5 04-05-2004 08:33 AM
apache directory index spank Linux - Newbie 1 12-10-2003 11:47 AM
apache index server? phek Linux - Newbie 1 08-30-2001 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration