Bug#850885: apache2: Using dwww, fails with internal server error when trying to access /usr/share/doc
I ran into the same problem and started investigating.
On Tue, 10 Jan 2017 22:01:45 +0100 Jerome <email@example.com> wrote:
> When looking at the Apache log, the following entry can be found:
> [Fri Jan 06 21:34:53.830541 2017] [http:error] [pid 6785:tid
> 140419151554304] [client ::1:45220] AH02429: Response header name
> 'Last modified' contains invalid characters, aborting request,
> referer: http://localhost/dwww/
> When calling the dwww CGI script manually, the 'Last modified' field
> is correct however, here's the HTTP header part:
> Content-type: text/html
> Last modified: Tue Dec 13 14:16:35 2016
> Content-Disposition: inline; filename="index.html"
Actually the header should read "Last-Modified" (note spelling). After
patching the dwww script to emit the correct header the error no longer
occurs with Apache. Therefore I believe the bug should be reassigned to
I will reply to the corresponding dwww bug report (#781987) with the fix I
applied to the dwww script.