You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1998/10/20 08:54:45 UTC
explicit default-handler
Say I have the following:
/bar/.htaccess: SetHandler server-status
/bar/foo/joe.html
And I want everything in foo/ to be handled by the default handler. Right
now I can't see a way to do that. With the below change, I can do:
/bar/foo/.htaccess: SetHandler default-handler
Any objections?
Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.234
diff -u -r1.234 http_core.c
--- http_core.c 1998/10/16 07:04:43 1.234
+++ http_core.c 1998/10/20 06:52:17
@@ -2879,6 +2879,7 @@
static const handler_rec core_handlers[] = {
{ "*/*", default_handler },
+{ "default-handler", default_handler },
{ NULL }
};
Re: explicit default-handler
Posted by Ben Hyde <bh...@pobox.com>.
> static const handler_rec core_handlers[] = {
> { "*/*", default_handler },
> +{ "default-handler", default_handler },
> { NULL }
> };
+1
Overdue.
Of course update the doc in mod_mime.
- ben hyde
Re: explicit default-handler
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
Dean Gaudet wrote:
>
> There's a PR asking for this, and I even thought it was in the
> STATUS...
> +1
+1 as well, but it isn't quite the same thing as in the STATUS
file nor the PR. The request was for a way to remove an AddHandler
association -- which is different from applying SetHandler to all
documents in a directory. Doing a "SetHandler default-handler"
will, I think, disable things like SSIs and negociation. I haven't
tested it, though.
#ken P-)}
Ken Coar <http://Web.Golux.Com/coar/>
Apache Group member <http://www.apache.org/>
"Apache Server for Dummies" <http://Web.Golux.Com/coar/ASFD/>
Re: explicit default-handler
Posted by Dean Gaudet <dg...@arctic.org>.
There's a PR asking for this, and I even thought it was in the STATUS...
+1
Dean
On Mon, 19 Oct 1998, Marc Slemko wrote:
> Say I have the following:
>
> /bar/.htaccess: SetHandler server-status
> /bar/foo/joe.html
>
> And I want everything in foo/ to be handled by the default handler. Right
> now I can't see a way to do that. With the below change, I can do:
>
> /bar/foo/.htaccess: SetHandler default-handler
>
> Any objections?
>
> Index: http_core.c
> ===================================================================
> RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
> retrieving revision 1.234
> diff -u -r1.234 http_core.c
> --- http_core.c 1998/10/16 07:04:43 1.234
> +++ http_core.c 1998/10/20 06:52:17
> @@ -2879,6 +2879,7 @@
>
> static const handler_rec core_handlers[] = {
> { "*/*", default_handler },
> +{ "default-handler", default_handler },
> { NULL }
> };
>
>
>