From owner-freebsd-hackers Thu Feb 21 10: 9:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lindt.urgle.com (lindt.urgle.com [62.49.202.23]) by hub.freebsd.org (Postfix) with ESMTP id DFC4837B405 for ; Thu, 21 Feb 2002 10:09:20 -0800 (PST) Received: from mike by lindt.urgle.com with local (Exim 3.33 #1) id 16dxea-000HeM-00; Thu, 21 Feb 2002 18:09:12 +0000 Date: Thu, 21 Feb 2002 18:09:12 +0000 From: Mike Bristow To: Tony Finch Cc: freebsd-hackers@FreeBSD.org, Julian Elischer , Hiten Pandya Subject: Re: In-Kernel HTTP Server (name preference) Message-ID: <20020221180912.A67832@lindt.urgle.com> References: <20020220003153.A17250@chiark.greenend.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020220003153.A17250@chiark.greenend.org.uk>; from dot@dotat.at on Wed, Feb 20, 2002 at 12:31:53AM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 20, 2002 at 12:31:53AM +0000, Tony Finch wrote: > Julian Elischer wrote: > > > > I can suggest using a netgraph module for the work as it can be connected > > to a netgraph ksocket node to receive the requests (jdp made all the > > changes needed to allow this to be done). > > Another way would be to implement it as an accept filter which knows how > to handle simple requests but drops anything more complicated down to > a userland web server -- an unmodified Apache would be able to do the > latter, since it already supports accept filters. Some way of configuring > it is still needed, though... This may well be the right approach. But rather than handling "simple" requests, it should handle cacheable requests. But only if they're in it's cache - otherwise it passes them through to the userland web server, and cache the results. This is the approach that Sun took (except they used a STREAMS module, rather than an accept filter). -- Mike Bristow, embonpointful, but not managerial, damnit. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message