linux-l: RE: rewrite rules with jserv??

Mark Ross starqeji at cetus.zrz.TU-Berlin.DE
Do Sep 28 16:09:37 CEST 2000


Hallo,

obwohl ich alles versucht habe (auch Eure Empfehlungen), will mein Apache
Jserv nicht
mit den Rewrite Regeln funktionieren.

koennte mir jemand bitte sein httpd.conf (und jserv.conf) schicken, falls
er einen funktionierenden Apache System hat (mit funktionierenden rewrite
rules) ,mit diesen Eigenschaften:
Apache 1.3.12 mit Jserv 1.1 auf ein Linux SuSe 6.4.
(oder aehnliches)

vielen Dank
Mark



On Tue, 26 Sep 2000, BERWART wrote:
>
> Hello,
>
> My first idea is the order !
> The order of the loadmodules of apache is very important
> you must load rewrite module before the jserv module !
>
> in your httpd.conf :
> ...
> LoadModule rewrite_module     libexec/mod_rewrite.so
> LoadModule jserv_module       libexec/mod_jserv.so
> ...
>
> if it doesn't work,
>
> you can replace your line :
>
> RewriteRule             ^/(.*)$     /servlet/Hello [PT]
>
> by
>
> RewriteRule             ^/(.*)     /servlet/Hello [PT]
>
> Good luck !
>
> Thierry
>
> -----Original Message-----
> From: Mark Ross [mailto:starqeji at sp.zrz.TU-Berlin.DE]
> Subject: rewrite rules with jserv??
>
>
> Hello!
>
> i have this problem:
>
> i installed Apache 1.3.12 in Linux 6.4, then Jserv 1.1.
> (my Hello.class startpage runs)
>
> Well I want to use rewrite to get always the startpage:
> RewriteEngine On
> RewriteRule             ^/servlets/Hello     /servlets/Hello [PT,L]
> RewriteRule             ^/(.*)$     /servlet/Hello [PT]
> RewriteLog              /var/log/rewrite_log
> RewriteLogLevel 5
>
> unfortunately it don't works.
> either the servet works but not the Rewrite rules or the rewrite rules
> work but not the servlet.
> it dipends of the position this 3 rows (after the row <IfDefine MODULES>
> or in the end of the httpd.conf file):
> <IfDefine JSERV>
> Include /etc/httpd/jserv/jserv.conf
> </IfDefine>
>
> can you help me  !?
>




Mehr Informationen über die Mailingliste linux-l