httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Why does SetHandler have ForceHandler semantics?
Date Tue, 12 May 2009 07:57:08 GMT
Inspired by Rich's feature request in PR#47184, I wondered why

<Directory /foo>
	SetHandler FooDefault
	AddHandler my-handler .foo .bar

doesn't have "specificity" semantics, wherein the AddHandler
overrides the SetHandler.

Turns out the latter gets set in core_override_type(), which is
a fixups hook, and unconditionally overrides anything set by
mod_mime or other module.  The semantics are "ForceType".


Does something bad happen if we check r->handler for what
some-other-module may have set before overriding it?

Nick Kew

View raw message