httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: stop copying r->content_type to r->handler?
Date Mon, 01 Jul 2013 16:45:24 GMT
On Mon, Jul 1, 2013 at 12:29 PM, Eric Covener <covener@gmail.com> wrote:
> On Mon, Jul 1, 2013 at 12:16 PM, Christian Seiler <chris_se@gmx.net> wrote:
>> Hi there,
>>
>>
>>> All releases still have what I guess is an old pre-SetHandler
>>> mechanism to allow content type -> handler mappings. If no r->handler
>>> has been set, but a content-type has, the content-type is copied to
>>> r->handler.
>>
>>
>> As an httpd user who's reading this proposal: Currently, I like to
>> configure PHP in combination with Apache in such a way that I set the
>> content type and then have Action application/x-httpd-php ... I don't
>> want to use AddHandler, since then Apache also processes files ending
>> in .php.txt with PHP, so the usage of the content type as handler has
>> been very useful to me. (Btw. this is PHP as CGI/FastCGI, hence the
>> Action statement.)
>
> Thanks for the feedback, can you show an example stanza? Curious how
> you set the type in contrast of AddHandler


It looks like mod_actions does not recognize r->handler set to "" --
when r->handler is NULL, he will look directly to r->content_type, so
that may be a potential way to still handle content-type based
"dispatch" without having the content-type sit in r->handler.



--
Eric Covener
covener@gmail.com

Mime
View raw message