-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Actually that FAQ entry results in the entire URL namespace being mapped
to the servlet. That isn't what I think the original requestor wanted
(at least it isn't what I want). I want just the top level (i.e.
http://host) initial page mapped to a servlet, but not the entire
namespace. So that http://host calls my servlet, but http://host/xxx
gets the file xxx.
The FAQ entry you mention has the following suggestion for the
httpd.conf:
LoadModule rewrite_module modules/ApacheModuleRewrite.dll
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/(.*) /myZone/slash?data=$1 [PT]
</IfModule>
This RewriteRule maps the entire namespace to the servlet
/myZone/slash. I have played around with various RewriteRules and can't
find a way to avoid mapping the entire namespace. So I have ended up
using a redirect (which isn't a very performant solution).
--Barry
jon * wrote:
>
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> > It is typical to have server side logic on the initial page of a website
> > (i.e www.company.com). Strangely enough, I cannot find any documentation or
> > help on the FAQ that explains how to set up the initial page as a servlet -
> > did I miss something?
>
> It is in the FAQ...
>
> <http://java.apache.org/faq/index.cgi?file=46>
>
> -jon
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
________________________________________________________
NetZero - We believe in a FREE Internet. Shouldn't you?
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]