users
[Top] [All Lists]

Re: [cinjug-users] directory listing in apache

To: "Jason Kretzer" <jrkretzer@xxxxxxxxx>
Subject: Re: [cinjug-users] directory listing in apache
From: "Mike Helmick" <helmick@xxxxxxxxx>
Date: Thu, 7 Apr 2005 08:51:00 -0400 (EDT)
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Importance: Normal
In-reply-to: <20050407120251.4618.qmail@web50103.mail.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: 6667 <20050407120251.4618.qmail@web50103.mail.yahoo.com>
Reply-to: helmick@xxxxxxxxx
User-agent: SquirrelMail/1.4.3a
In addition to that....

I usually throw a file named index.php in the directory that contains

<?php
 header("Location: http://yourserver/";);
exit;
?>

This provideds a better user exerpience as it doesn't present a nasty
access denied error.

mike helmick

------------------------------------------------------
Michael T Helmick,  M.S. 2004 NKU, B.S. 2000 XU
Ph.D. Student - University of Cincinnati, College of Engineering
    Web: http://mikehelmick.com/
------------------------------------------------------
Help stamp out and abolish redundancy.


> Nevermind.  I found it.  Just remove the Indexes
> option on the Options directive in the <Directory>
> entry for htdocs in the httpd.conf.
>
>
> -Jason
> --- Jason Kretzer <jrkretzer@xxxxxxxxx> wrote:
>> Hello all:
>>
>> Its been so long since I set up Apache, I cannot
>> remember how to turn off the directory listing.  For
>> example, in htdocs I have a directory called images.
>>
>> When I go to localhost/images I get a listing of all
>> the files there.  How would I turn this off?  I am
>> looking for the solution that produces this kind of
>> error message.
>>
>>
>> You don't have permission to access /images/ on this
>> server.
>>
>> Thanks for helping with my brain lapse.
>>
>> -Jason
>>
>>
>>
>>
>> __________________________________
>> Yahoo! Messenger
>> Show us what our next emoticon should look like.
>> Join the fun.
>> http://www.advision.webevents.yahoo.com/emoticontest
>>
>> ---------
>> You may unsubscribe from this mailing list
>> by sending a blank email addressed to:
>> users-unsubscribe@xxxxxxxxxx
>>
>> --
>> Find additional help by sending a blank email
>> addressed to:
>> users-help@xxxxxxxxxx
>>
>>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage less.
> http://info.mail.yahoo.com/mail_250
>
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
>
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
>





<Prev in Thread] Current Thread [Next in Thread>