Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Systems > Linux / BSD / OS X

Reply
 
LinkBack Thread Tools Display Modes
Old 08-14-2008, 04:48 AM   #1 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
Apache2 directory listings

I've got an odd problem. I've setup HTTP password protection on a number of files using <FilesMatch>. Under Apache1.3, with index listing on, I could list all the contents of a directory and any password protected file would simply prompt for user/pass when someone clicked on it. Now, the index listing simply won't display any password protected file, resulting in a number of seemingly empty directories.

Anyone know how to list the files again?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 08-16-2008, 03:26 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
So, it turns out that with Apache 2.2, they added the IndexOption ShowForbidden, which is turned off by default. That means that if a file would prompt for an HTTP authnetication request, it's not shown in the directory listing.
__________________
GitS

Last edited by Belisarius; 08-17-2008 at 06:53 AM. Reason: Fixed hyperlink to point to 2.2 documentation
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating directory problem salmanjoo PHP 1 08-21-2005 09:56 AM
Recursive Directory Listings. Charmy Platform/API C++ 1 05-06-2005 05:14 AM
get/change current directory in windows enemite Platform/API C++ 2 04-22-2005 10:36 PM
copy a directory link with -Rs sde Linux / BSD / OS X 3 02-15-2005 06:34 PM
get the size of a directory and its contents sde Linux / BSD / OS X 6 10-06-2004 05:55 AM


All times are GMT -8. The time now is 01:47 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting