www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pal Loberg <pa...@pvv.ntnu.no>
Subject mod_include/2814: AddHandler "crash" AddType
Date Sat, 08 Aug 1998 18:34:16 GMT

>Number:         2814
>Category:       mod_include
>Synopsis:       AddHandler "crash" AddType
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Aug  8 11:40:00 PDT 1998
>Originator:     pallo@pvv.ntnu.no
>Release:        1.3.0
FreeBSD 2.2.5-RELEASE. Compiled with gcc 2.8.1. Apache configured with
./configure --prefix=/usr/local/www --exec-prefix=/usr/local/www --activate-module=src/modules/php3/libphp3.a
--enable-module=expires --enable-module=headers --enable-module=rewrite --enable-module=so
--enable-module=status --enable-module=usertrack --with-perl=/usr/local/bin/perl5

PHP/3.0 installed as module, not shared. PHP Configured with
./configure  --with-apache=/usr/local/www/src/apache_1.3.0 --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/www/etc
--with-gd=/store --with-exec-dir=/usr/local/www/bin --enable-debugger
If a .htaccess file contain an AddType using a "magic" MIME type 
(like text/x-server-parsed-html), and a AddHandler is added for the same file
suffix, the file is sent with the magic MIME type as Content-Type (ie. the
"magic" content type is not changed to "text/html" or whatever it is supposed to 

Create a .htaccess with the lines:
AddHandler server-parsed .yhtml
AddType text/x-server-parsed-html .yhtml

All .yhtml files are now sent as "text/x-server-parsed-html", instead of
"text/html". If one of the Add{Handler,Type} lines are removed, it works
The server-parsed handler should check to see if the "magic" mime-type is 
defined. It it is, the content-type should be set "text/html".
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message