[Linux-disciples] Apache Directory Listing Problem

Adam Kessel adam at rosi-kessel.org
Thu Mar 18 15:04:44 EST 2004


Weird. Your problem doesn't totally make sense.

Are you doing all of this in httpd.conf, or some in the localized
.htaccess?  Just as suggestion, I would put Options Indexes in the
.htaccess in /foo/bar, rather than httpd.conf, but this might be mostly a
matter of taste if you're root on the system.

Maybe it's something having to do with the order of things in the
configuration file?  This doesn't really sound right either.

Is it only with / that you're having this problem, or other
subdirectories where Options Indexes is disabled as well?

On Fri, Mar 12, 2004 at 06:20:36PM -0500, Brian Cooke wrote:
> Hi,
> 
> I'm trying to get Apache to list contents of a particular directory for 
> me.  It's proving to be difficult for me.  Here's what's happening:
> 
> Until now, I have not loaded the mod_autoindex module in Apache. If this 
> module is disabled, I can't get Directory Listings to work at all -- 
> even if I have "Options Indexes" set in my configuration.  I guess my 
> first question is whether or not that is expected? The documentation I'm 
> reading seems to suggest that all I need is "Options Indexes".
> 
> Anyway, when I did enable it, it worked too well -- it enabled directory 
> listings for every directory on my whole site. I only wanted directory 
> listings for /foo/bar. So I removed "Options Indexes" from the root 
> directory and gave it only to the /foo/bar directory. This worked OK for 
> /foo/bar (I got a listing there, as I wanted), but when I tried to 
> access "/", I got an error message saying I didn't have permission to 
> access / on this server. I checked in the error logs and it says 
> "Directory index forbidden by rule". I don't understand this. It's 
> disabled by rule because I want it to go and look for any one of the 
> files I have set up in my DirectoryIndex directive (index.html, 
> index.shtml, index.php, etc...) -- which are present. I know this 
> because if I turn disable mod_autoindex, the pages listed in 
> DirectoryIndex load automatically. But then of course I don't get the 
> directory listing for /foo/bar.  Any idea what I'm doing wrong?
-- 
Adam Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040318/ea22af97/attachment-0001.pgp


More information about the Linux-disciples mailing list