Index: [Article Count Order] [Thread]

Date:  Wed, 13 Mar 2002 23:30:07 +0900
From:  GOTO Kentaro <gotoken@notwork.org>
Subject:  [webricken:36] Re: webrick as an application server
To:  webricken@notwork.org
Message-Id:  <877kog7d74.wl@miso.k.notwork.org>
In-Reply-To:  <001d01c1c984$3690a640$85222fc0@sarion.co.jp>
References:  <3C8D513A.7060806@imperitek.com>	<001d01c1c984$3690a640$85222fc0@sarion.co.jp>
X-Mail-Count: 00036

At Tue, 12 Mar 2002 14:10:22 +0900,
NAKAMURA, Hiroshi <nahi@keynauts.com> wrote:
> > I really like the servlet model webricken has.  I'd like to 
> > use webrick 
> > as an application server with another web-server (apache) 
> > fronting the 
> > web-site.  Is there any work being done in this direction?
> 
> I've never heard that this is planned but
> this sounds much interesting to me, too.
> 
> Is there anybody who have dived into the architecture
> how Apache and Tomcat are integrated each other?

Though I have no idea about them, mod_proxy with (or without)
mod_rewrite allow just that.

Assume that Apache is running on http://localhost/ and you (say user)
want to provide some WEBrick servlet services on port 2000 as if that
is a part of Apache url hierarchy: http://localhost/~user/webrick/ .
The following works so. 

% cd ~/public_html/webrick
% cat .htaccess
Options Indexes FollowSymlinks

RewriteEngine on
RewriteRule ^(.*)$ http://localhost:2000/$1 [P,L]
% 

# I'm a mod_rewrite newbie and this must be odd but working ;-)

-- Gotoken