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