tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bradley McLean <br...@ne.mediaone.net>
Subject Re: Servlet as "http://mysite.com/"???
Date Thu, 02 Mar 2000 04:35:03 GMT
* Scott Deerwester (scott@HK.Super.NET) [000301 21:43]:
>
> AFAIK, a Tomcat servlet must be referred to as
> 
> http://mysite.com/myservlet/servlet/aservlet/other/info
> 
> either in the standalone server or when hooked up to Apache via JServ,
> where /other/info is available to the servlet in the
> HttpServletRequest.getRequestURI(). But what I need is for:
> 
>                        http://mysite.com/other/info
> 
> to call the servlet directly with "/other/info" passed along in
> getRequestURI(). Defining a VirtualHost in Apache's httpd.conf doesn't
> help, because the DocumentRoot is a physical file location, not a
>...

What about an apache rewrite rule from
http://mysite.com/other/info  -> 
http://mysite.com/myservlet/servlet/aservlet/other/info ?

Mime
View raw message