On Wed, 2002-11-20 at 17:14, Stephen Adkins wrote:
> This brings up an interesting question ...
> 
>  * Is there a robust all-perl web server?
>    i.e. HTTP::Daemon combined with Net::Server?
>    HTTP::Daemon - an all-perl web server (single request at a time)
>    Net::Server - multi-process, lots of nice things that Apache has
> 
> It would be somewhat analogous to how the Tomcat Java Servlet engine
> can act serve web requests directly without any need for Apache.
> Or if you want to knit it together with Apache, you can do so with
> mod_jk (similar to Perl with mod_perl).

You can use forking with HTTP::Daemon for handling multiple simultaneous
requests. I dunno about polling/select. I'd be curious to see a
pure-perl ithreaded HTTP::Daemon if one doesn't already exist.

As for using it with Apache, you'd probably be able to use mod_proxy as
recommended in the mod_perl guide: light Apache process for static
content up front which proxies dynamic requests to the heavier backend,
in this case HTTP::Daemon instead of mod_perl.

Chris

-- 
Chris Winters ([EMAIL PROTECTED])
Building enterprise-capable snack solutions since 1988.

Reply via email to