httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Horak <>
Subject [users@httpd] Re: Autoindex hides directories with no access (solved)
Date Wed, 07 Apr 2004 09:25:11 GMT
Thank you very much. After little experimentation I made this 
"correction" in mod_autoindex.c:

     if ((rr->finfo.filetype != APR_DIR && rr->finfo.filetype != APR_REG)
         || !(rr->status == OK || ap_is_HTTP_SUCCESS(rr->status)
                                   /* Do not hide directories !! */
                               || rr->finfo.filetype == APR_DIR
                               || ap_is_HTTP_REDIRECT(rr->status))) {
         return (NULL);

It seems to work.


Boyle Owen wrote:
>>I'm sorry, I forgot to include the version information.
>>I'm running Apache 2.0.49, which is giving me that trouble.
>>With 1.3.x it was OK.
> The behaviour is different between apache 1.3 and 2. This was discussed
> at length on the thread below which contains a snippet of some of the
> code you might have to modify..
> Rgds,
> Owen Boyle
>>Aaron W Morris wrote:
>>>Martin Horak wrote:
>>>>I spotted following problem:
>>>>mod_autoindex ignores directories to which user has no 
>>acces (eg. by 
>>>>means of mod_auth). But how that poor user can log in and send 
>>>>name/password, when he cannot switch into that (authenticated) 
>>>>directory because he doesn't see it's link in index?
>>>>This is very arguable feature I think.
>>>>Could you please advise me how to turn off this feature - 
>>I'm not so 
>>>>good in C programming to find it myself. At least point me to the 
>>>>right function...
>>>>Thanks for any help
>>>What version of Apache are you running?  If I am not mistaken, the 
>>>behavior is different between Apache 1.3 and 2.0.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message