[prev in list] [next in list] [prev in thread] [next in thread] 

List:       java-apache-users
Subject:    Re: Re: Config JServ as a root directory
From:       "Andras Balogh" <abalogh () grafx ! ro>
Date:       2001-01-29 12:36:38
[Download RAW message or body]

----------------------------------------------------------------
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!!!
----------------------------------------------------------------


----- Original Message -----
From: "Angus Edison" <angus.jserv@cybermedian.com>
To: "Java Apache Users" <java-apache-users@list.working-dogs.com>
Sent: Monday, January 29, 2001 2:10 PM
Subject: Re: Re: Config JServ as a root directory

Hi,


>
> 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.
>


Actually i have used mod_rewrite and i have rewritten the page requests to
Servlet requests.
This was done internally so it was not an extra trip to the browser.
RewriteRule ^/$ /servlet/MyServlet?path=index.html [PT]
RewriteRule ^/index.html$ /servlet/MyServlet?path=index.html [PT]
One important issue in the ORDER of the modules.
I have found this solution on this list so maybe you could have found it
too.
ClearModuleList
 AddModule mod_env.c
 AddModule mod_log_config.c
 ...
 ...
(all the modules that you have in your apache in same order as
apache/bin/httpd -l lists them)
...
 AddModule mod_jserv.c
 AddModule mod_rewrite.c

The important thing is that mod_rewrite should be AFTER mod_jserv.

Best wishes,

            Andras.









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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic