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

Hi,

its a pretty simple problem:

try the following: go to the directory where httpd is located (default:
/usr/local/aopache/bin/) and type httpd -l; this gives you a list of the included
modules. It will look like:

http_core.c
mod_env.c
...
 mod_rewrite.c
...
 mod_jserv.c

This shows you also the order the modules where compiled into the binary. This
order is very important because the modules are executed the other way round; that
means mod_jserv will be excuted _before_ mod_rewrite is executed. Thats why your
rewrite doesnt work.

Actually we found no way to get mod_jserv compiled into the binary befor
mod_rewrite - so other solutions have to be found in the following way:

1) Dont try to change the order of compilation of the modules - it doesnt work
2) add the following lines into your httpd.conf (I dont know since which version
of apache it works)

ClearModuleList
AddModule mod_env.c
....
AddModule mod_jserv.c
AddModule mod_rewrite.c

The last two lines are important: always load mod_rewrite AFTER mod_jserv because
thats the way to tell apache to execiute it BEFORE mod_jserv. Dont forget to add
all the other Modules - just make a copy of the httpd -l output and add all the
modules  - just DONT add the http_core.c - that wont work!

I wouldnt try to change the order of the other modules - i dont know what happens
then - only change the order of rewrite and jserv!

Hope, that helps,

Rupert



Volker Richert 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!!!
> ----------------------------------------------------------------
>
> Hi Garry,
>
> did you find any solution for the problem you described below?
>
> Thanx
>
> Volker
>
> Garry Thuna schrieb:
>
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> >
> > I am trying to use mod rewrite (to which I am quite new) to rewrite specific
> > url's to
> > servlets.  As a test (until I get it working correctly) I am trying to route
> > any and all
> > requests to a hard coded servlet.
> >
> > My zone is mounted on "nn" and I have the following relevant stuff in my
> > httpd.conf (within a <virtual host>)
> >     RewriteEngine on
> >     RewriteLog /tmp/rw.log
> >     RewriteLogLevel 9
> >     RewriteRule  ^(.*)$                      /nn/SessionSnoop [PT]
> >
> > When I try either http://myhost or http://myhost/
> > I get "Not Found: the requested URL /nn/SessionSnoop was not found on this
> > server."
> >
> > But when I try http://myhost/nn/SessionSnoop I get the expected output (so
> > jserv got it before
> > mod-rewrite could -- confirmed by no activity in the rw.log file)
> >
> > It seems that the mounting of the zone onto nn happens prior to the url
> > being processed by mod-rewrite.
> > I believe that I have the load order correct as mod-rewrite is loaded by
> >     LoadModule rewrite_module     libexec/mod_rewrite.so
> >     AddModule mod_rewrite.c
> > lines in my httpd.conf and the last line of this file is
> >     include /usr/local/apache/jserv/conf/jserv.con
> > which contains as its first line
> >     LoadModule jserv_module libexec/mod_jserv.so
> >
> > Any help is appreciated,
> > Garry
> >
> > --
> > --------------------------------------------------------------
> > 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]
>
> --
>  Dipl. Inform.
>  Volker Richert
>  Information Design
>
>  Sektor Online Services GmbH        Telefone :      +49 241 963-1750
>  Dennewartstr. 27                   Fax      :      +49 241 963-1769
>  Technologiezentrum                 E-Mail   :     [EMAIL PROTECTED]
>  52064 Aachen                       URL      : http://www.sektor.com
> --
>
> --
> --------------------------------------------------------------
> 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]



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

Reply via email to