----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I have tried the rewrite. But it is not the thing I want. The rewrite send a status 
code 300 to the client to redirect the page.

The reason I need to map the servlet to root. Is there is an application always access 
the first level of the webserver (eg. http://www.something.com/somedir). I need to use 
the servlet to similate the response. 



>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files.  Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>"R.Gurumoorthy" wrote:
>> 
>> ----------------------------------------------------------------
>> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>> WHEN YOU POST, include all relevant version numbers, log files,
>> and configuration files.  Don't make us guess your problem!!!
>> ----------------------------------------------------------------
>> 
>> Dear Angus,
>>                 Since Apache Jserv treates servlet directory as repository
>> and not as directory
>>                 ( Alias ) you cannot set this.
>>                 on thing you can do is just modify the index.html in the
>> server root
>>                 like this <BODY ONLOAD="window.location.href = 'your servlet
>> directory'">
>
>Actually, this is pretty well covered on the FAQ -- you will find it
>under something like "How do I configure / to map to a servlet" or
>something like that. The easy way is doing something like what you
>described. The hard (but server-side only, which is good because does
>not rely on client intelligence) is to use Apache's mod_rewrite. It is
>not so obvious at first as to how to tackle this, but have a look at the
>FAQ.
>
>> hope this helps
>> with regards
>> guru
>
>[]'s
>Ulisses
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Search Archives: 
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?:           [EMAIL PROTECTED]
>
>
>

__________________________________________________
CyberMedian: Ultimate Internet desktop
Get 25 MB web desktop, please goto http://www.cybermedian.com/


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to