(Hmm...using one of the windowing mail clients, eh?  Turn on 72-character wrap.)

On Thu, Feb 15, 2001 at 11:31:00PM -0600, Jonathan Wilson wrote:
> I've got apache-1.3.14-2.6.2 and I can't get it to list the contents of
> directories. I'm sure I'm missing something but I don't know what.
>
> I have the following:
> 
>         IndexOptions    FancyIndexing
> 
> In both the global section and the virtualhost. It makes no difference, I get a 403 
>"forbidden". I know the filesystem perms are ok because if I put an index.html in any 
>of the dirs it shows up in a jiffy.

Leave "IndexOptions FancyIndexing" in the global section.  Turn on
"AddIcon*" and "DefaultIcon" directives there, too, if you wish; it'll
look the way people expect.

Try putting the following in a .htaccess file in the directory:

        DirectoryIndex index.html
        IndexOptions FancyIndexing
        AuthUserFile /usr/local/etc/httpd/some_passwd
        AuthGroupFile /dev/null
        AuthName SomeAuthname
        AuthType Basic

        require valid-user

If you want the directory to be wide open, remove the Auth* and "require"
entries.  If not, look up how to use htpassswd.

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to