httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] mod_autoindex and README.html gzipped
Date Fri, 30 Jun 2006 20:03:32 GMT
On 6/30/06, Miguel Pagano <> wrote:
> Hi,
> I discvorered a buggy behaviour in mod_autoindex: when the file
> README.html is gzipped or compressed the content of that file is
> showed after the directory listing. The problem is that the content of
> the README file is gzipped or compressed and is showed verbatim.
> This problem is also mentioned in bug #21372
> ( I have
> issued a new bug #39937
> (, and
> provided a patch (available on the same bug report).
> If this is not a bug, could you explain why? I apologize for not
> following the guidelines (it's supposed that I should have asked first
> here and then filed the bug) and for my english mistakes.

There was an old vaudeville joke that went something like:
A man walks into the doctor's office, raises his arm and says, "Doc,
it hurts when I do this."  The doctor says, "Don't do that."

Yes, there is a small bug here in the sense that Apache tries to
prevent you from shooting yourself in the foot by only trying to
include text/* documents but allows you to dodge that check using
encoding and shot yourself in the foot anyway.  But that is really
only a safety check, and the fix is either not gzip your README, or
configure apache not to include it.  (In other words, stop trying to
shoot yourself in the foot.)  I think it is borderline whether it is
worth adding code to check for this special case.


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